PostgreSqlBootstrap
This class initializes the necessary dependencies for the NpgsqlConnection object — the DbSetting, DbHelper and StatementBuilder — and registers them via their respective mappers.
The static
Initialize()method is obsolete. Use PostgreSqlGlobalConfiguration.UsePostgreSql() instead.
Properties
| Name | Description |
|---|---|
| IsInitialized | Returns true once the initialization has completed. |
Usability
Call PostgreSqlGlobalConfiguration.UsePostgreSql() during application start-up; it triggers this class internally.
GlobalConfiguration
.Setup()
.UsePostgreSql();
Initialization is a one-time, idempotent operation — calling
UsePostgreSql()more than once has no additional effect.