AyCode.Core/AyCode.Database/DataLayers
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
..
Users Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00
AcDalBase.cs improvements, fixes, etc... 2024-06-30 15:34:19 +02:00
IAcDalBase.cs refactroing, improvements, fixes, etc... 2024-05-18 05:12:23 +02:00
PooledDal.cs improvements, fixes 2024-06-03 07:48:33 +02:00
README.md Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00

README.md

DataLayers

Generic Data Access Layer (DAL) abstraction with mutex-protected session/transaction patterns and singleton DAL pooling.

Key Files

  • IAcDalBase.cs — Base interface: Name, Context access, Mutex lock, DbContext lifecycle.
  • AcDalBase.cs — Abstract implementation: Session/SessionAsync (reads), Transaction/TransactionAsync (writes), thread-safe Mutex, auto DbContext creation, model DTO conversion.
  • PooledDal.cs — Singleton DAL pool: concurrent dictionary by SessionId/PlayerId, GetDalById, CreateDal, Remove.

Subfolders

Folder Purpose
Users/ User-specific DAL with authentication and CRUD

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.