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