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. |
||
|---|---|---|
| .. | ||
| DataLayers | ||
| DbContexts | ||
| DbSets | ||
| Extensions | ||
| ModelBuilders | ||
| SqlScripts | ||
| AcDbLogItemWriter.cs | ||
| AyCode.Database.csproj | ||
| PermissionViewSql.cs | ||
| README.md | ||
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 |