- Add BINARY_FORMAT.md: full AcBinary wire format spec (markers, encoding, options, protocol, interactions) - Reference BINARY_FORMAT.md from GLOSSARY.md, Binaries/README.md, and Serializers/Binaries/README.md; add new glossary terms - Clarify and expand config options tables to match new doc - Add/clarify LLM maintenance rules: always sync .md files with code, auto-fix discrepancies - Update root README.md: AyCode.Core targets .NET 9, not 10; stress doc/code sync - Add code reuse and doc sync conventions to copilot-instructions.md and CONVENTIONS.md - Add docs/ folder and BINARY_FORMAT.md to solution as Solution Items - Minor clarifications and cross-links in ARCHITECTURE.md and other docs |
||
|---|---|---|
| .. | ||
| 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 |