AyCode.Core/AyCode.Database
Loretta ffd537b5eb Refactor: Split and expand project-level documentation
- Move all major feature docs (logging, binary, SignalR, DataSource) into per-project `docs/` folders with dedicated Markdown files.
- Split monolithic docs into focused files: `BINARY_FORMAT.md`, `BINARY_FEATURES.md`, `BINARY_OPTIONS.md`, `LOGGING.md`, `LOGGING_SERVER.md`, `LOGGING_REMOTE.md`, `SIGNALR.md`, `SIGNALR_SERVER.md`, `SIGNALR_DATASOURCE.md`.
- Update all references in `README.md`, `copilot-instructions.md`, `GLOSSARY.md`, and `ARCHITECTURE.md` to point to the correct per-project doc.
- Add documentation tables to each project’s `README.md` and clarify folder structure.
- Update `.csproj` files to include `docs/**/*.md` for packaging.
- Remove obsolete/moved docs from the solution file.
- Ensure all technical debt warnings and cross-references are preserved and accurate.
- No code changes; documentation only.
2026-03-29 22:16:28 +02:00
..
DataLayers Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
DbContexts Refactor: Split and expand project-level documentation 2026-03-29 22:16:28 +02:00
DbSets Refactor: Split and expand project-level documentation 2026-03-29 22:16:28 +02:00
Extensions Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
ModelBuilders Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
SqlScripts Add PermissionViewSql; fixes 2023-12-13 02:25:58 +01:00
AcDbLogItemWriter.cs refactroing, improvements, fixes, etc... 2024-05-18 05:12:23 +02:00
AyCode.Database.csproj Enhance JSON handling and add hybrid reference support 2025-12-08 15:50:48 +01:00
PermissionViewSql.cs Add PermissionViewSql; fixes 2023-12-13 02:25:58 +01:00
README.md Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00

README.md

AyCode.Database

Entity Framework Core data access layer with generic DAL pattern, session/transaction management, and DAL pooling. Supports multi-tenant user, company, profile, address, and email entities.

Folder Structure

Folder Purpose
DbContexts/ EF Core DbContext base classes and configurations
DbSets/ Generic DbSet interfaces with extension-based CRUD
DataLayers/ DAL abstraction with session/transaction and pooling
ModelBuilders/ Fluent API entity relationship configurations
Extensions/ Session, transaction, and DTO conversion helpers

Key Files (Root)

  • PermissionViewSql.cs — SQL view definitions for permission management.
  • AcDbLogItemWriter.cs — Writes log items to the database via logger base class.

Dependencies

Dependency Purpose
Microsoft.EntityFrameworkCore.SqlServer SQL Server EF Core provider
MessagePack Serialization annotations
Newtonsoft.Json JSON support