AuroraDbBootstrap
A class that is being used to initialize the necessary settings for the AuroraDbConnection object.
This class initializes the necessary dependencies for AuroraDbConnection (RepoDb.Connector.AuroraDb.MySqlConnector.AuroraDbConnection) — the AuroraDbDbSetting, AuroraDbDbHelper and AuroraDbStatementBuilder — and registers them via their respective mappers.
Properties
| Name | Description |
|---|---|
| IsInitialized | Returns true once the initialization has completed. |
Usability
Call AuroraDbGlobalConfiguration.UseAuroraDb() during application start-up; it triggers this class internally.
GlobalConfiguration
.Setup()
.UseAuroraDb();
Initialization is a one-time, idempotent operation — calling
UseAuroraDb()more than once has no additional effect.
RepoDb.AuroraDb.PostgreSql maps this exact same
UseAuroraDb()method name andAuroraDbConnectiontype name (in a different namespace, backed by a different connector). Reference only one of the two packages in a given project.