MSSqlConnectionProvider(IDbConnection, AutoCreateOption) Constructor
Initializes a new instance of the MSSqlConnectionProvider class with the specified settings.
An object implementing the IDbConnection interface that represents an open connection to a data source.
Usually a Session object creates a connection provider manually based on the information supplied by the connection string. There are also cases when you need to create the connection provider manually via its constructor, for instance:
- when sharing a single IDataLayer object between multiple sessions. A connection provider should be passed to the data layer's constructor. See the IDataLayer topic for additional information.