mirror of
https://github.com/azaion/admin.git
synced 2026-04-23 09:16:33 +00:00
d320d6dd59
Made-with: Cursor
1.1 KiB
1.1 KiB
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<User> |
Typed table accessor for the users table |
Internal Logic
Delegates all connection management to the base DataConnection class. Users property calls this.GetTable<User>().
Dependencies
Userentity- linq2db (
LinqToDB.Data.DataConnection,LinqToDB.ITable<T>)
Consumers
DbFactory— createsAzaionDbinstances insideRun/RunAdminmethods
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.