Click or drag to resize

ReaderWriterLockingDataContext(IDbProvider, IDbConnection, IDbTransaction) Constructor

Creates a new writable data context with an existing transaction.

Namespace: SanteDB.OrmLite
Assembly: SanteDB.OrmLite (in SanteDB.OrmLite.dll) Version: 3.0.2081-alpha+d0a78774d3f97b9193d2ae2fef6d129ea9f29519
Syntax
public ReaderWriterLockingDataContext(
	IDbProvider provider,
	IDbConnection connection,
	IDbTransaction tx
)

Parameters

provider  IDbProvider
The underling provider for this context.
connection  IDbConnection
The connection created by the provider for this context.
tx  IDbTransaction
The transaction this context will be enlisted in.
Remarks
This constructor will mark the data context as writable and lock the provider.
See Also