Link Search Menu Expand Document

SqlServerBootstrap


This class initializes the necessary dependencies for the SqlConnection object — the DbSetting, DbHelper and StatementBuilder — and registers them via their respective mappers.

The static Initialize() method is obsolete. Use SqlServerGlobalConfiguration.UseSqlServer() instead.

Properties

NameDescription
IsInitializedReturns true once the initialization has completed.

Usability

Call SqlServerGlobalConfiguration.UseSqlServer() during application start-up; it triggers this class internally.

GlobalConfiguration
    .Setup()
    .UseSqlServer();

Initialization is a one-time, idempotent operation — calling UseSqlServer() more than once has no additional effect.