AyCode.Core/AyCode.Database
Loretta affa85e5c5 [LOADED_DOCS: 4 files, no new loads]
Refactor docs: topic folders, TOON, XCUT, protocol sync

- Migrated all topic documentation into dedicated folders with canonical `README.md`, `ISSUES.md`, and `TODO.md` per topic (e.g., `LOGGING/`, `SIGNALR/`, `BINARY/`, `TOON/`).
- Added comprehensive TOON serializer documentation: design, format, options, attributes, inference, issues, and TODOs.
- Introduced `XCUT` folder for cross-cutting issues and TODOs, with canonical entries and topic cross-references.
- Updated all references and navigation to use new folder-based doc paths; fixed links and clarified doc structure.
- Enhanced AI agent protocol: enforce session skill preloading, `[LOADED_DOCS: ...]` short-name prefix, and mandatory `docs-check` skill for doc/code sync.
- Updated `.csproj` to include all `README.md` files for IDE visibility.
- Improved and clarified SignalR, grid, and project-level documentation.
- Minor code/test tweaks and doc content corrections for consistency.
2026-04-24 21:54:04 +02:00
..
DataLayers Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
DbContexts [LOADED_DOCS: 4 files, no new loads] 2026-04-24 21:54:04 +02:00
DbSets [LOADED_DOCS: 4 files, no new loads] 2026-04-24 21:54:04 +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 [LOADED_DOCS: 4 files, no new loads] 2026-04-24 21:54:04 +02: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