AyCode.Core/AyCode.Database/DbContexts
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
..
Loggers Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00
Users Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00
AcDbContextBase.cs improvements 2024-11-14 11:23:04 +01:00
AcDbContextExtension.cs refactoring, improvements, fixes, etc... 2023-12-13 22:05:12 +01:00
IAcDbContextBase.cs improvements 2024-11-14 11:23:04 +01:00
IAcEntityTypeConfiguration.cs refactoring, improvements, fixes, etc... 2023-12-13 22:05:12 +01:00
README.md Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00

README.md

DbContexts

EF Core DbContext base classes with automatic timestamp management, UTC conversion, and lazy loading proxy support.

Key Files

  • IAcDbContextBase.cs — Base interface (Name, SessionId).
  • AcDbContextBase.cs — Abstract base: SQL Server config, auto Created/Modified timestamps, DateTime UTC conversion, transaction/SaveChanges handling.
  • AcDbContextExtension.cs — Extensions for entity keys, modified properties, value converters, UTC handling.
  • IAcEntityTypeConfiguration.cs — Interface for EF entity type configurations.

Subfolders

Folder Purpose
Users/ User-specific DbContext with DbSets for User, Profile, Address, Company, UserToken, EmailMessage
Loggers/ Logger DbContext with NoTracking for read performance

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.