AyCode.Core/AyCode.Database
Loretta 17daf0fef2 Document AcBinary wire format, sync docs, update conventions
- 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
2026-03-29 09:11:57 +02:00
..
DataLayers Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
DbContexts Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
DbSets Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +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