# Module: Azaion.Common.Database.AzaionDb ## Purpose linq2db `DataConnection` subclass representing the application's database context. ## Public Interface | Member | Type | Description | |--------|------|-------------| | Constructor | `AzaionDb(DataOptions dataOptions)` | Initializes connection with pre-configured options | | `Users` | `ITable` | Typed table accessor for the `users` table | ## Internal Logic Delegates all connection management to the base `DataConnection` class. `Users` property calls `this.GetTable()`. ## Dependencies - `User` entity - linq2db (`LinqToDB.Data.DataConnection`, `LinqToDB.ITable`) ## Consumers - `DbFactory` — creates `AzaionDb` instances inside `Run`/`RunAdmin` methods ## Data Models Provides access to the `users` table. ## Configuration Receives `DataOptions` (containing connection string + mapping schema) from `DbFactory`. ## External Integrations PostgreSQL database via Npgsql. ## Security None at this level; connection string security is handled by `DbFactory`. ## Tests Indirectly used by `UserServiceTest`.