# 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/`](Users/README.md) | User-specific DbContext with DbSets for User, Profile, Address, Company, UserToken, EmailMessage |
| [`Loggers/`](Loggers/README.md) | Logger DbContext with NoTracking for read performance |
