AhtolaBootstrap
A class that is being used to initialize the necessary settings for the SqliteConnection object.
This class initializes the necessary dependencies for the Devolutions.Ahtola.Data.Sqlite SqliteConnection (Ahtola.Data.Sqlite.SqliteConnection) object — the AhtolaDbSetting, AhtolaDbHelper and AhtolaStatementBuilder — and registers them via their respective mappers.
It wires up AhtolaDbTypeNameToClientTypeResolver as the type resolver, and constructs the AhtolaDbSetting with isExecuteReaderDisposable set to false.
The connection type is named
SqliteConnectionin every SQLite driver, but each lives in its own namespace (Ahtola.Data.Sqlitehere). The mappers are keyed by the full type, so this provider can be registered side by side with the other SQLite providers without conflict.
Properties
| Name | Description |
|---|---|
| IsInitialized | Returns true once the initialization has completed. |
Usability
Call AhtolaGlobalConfiguration.UseAhtola() during application start-up; it triggers this class internally.
GlobalConfiguration
.Setup()
.UseAhtola();
Initialization is a one-time, idempotent operation — calling
UseAhtola()more than once has no additional effect.