AyCode.Core/AyCode.Database
Loretta fbe142c6f3 Add detailed README.md files for all projects and folders
Added comprehensive README.md documentation to every project and subfolder in the solution. Each README describes the purpose, key files, structure, dependencies, and design patterns for its area. This improves codebase navigability and maintainability, and includes a maintenance note to keep docs in sync with future code changes.
2026-03-28 17:24:56 +01:00
..
DataLayers Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00
DbContexts Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00
DbSets Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00
Extensions Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00
ModelBuilders Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01: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 Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01: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

LLM Maintenance: If you modify code in this folder, update this README to reflect the changes. If you notice the README content does not match the current code, automatically update the README to match the code.