SqlServerBootstrap

A class that is being used to initialize the necessary settings for the SqlConnection object.

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

Name Description
IsInitialized Returns 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.