DataContext.DataContext(DbConnection dbConnection, IDataContextOptions dataContextOptions) Constructor
.NET Standard 2.x
Initializes a new instance of the DataContext
class by a DbConnnection
object and an IDataContextOptions
object.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Syntax
protected DataContext(DbConnection dbConnection, IDataContextOptions dataContextOptions);
Parameters
dbConnection
System.Data.Common.DbConnection
A DbConnection
object which represents a connection to a database.
dataContextOptions
SnapObjects.Data.IDataContextOptions
An IDataConntextOptions
object which contains options for the DataContext
object. The ConnectionString
option in this object is ignored and the dbConnection
argument is used instead.
Applies to
.NET Standard
2.x