 | ReaderWriterLockingDataContext(IDbProvider, IDbConnection, IDbTransaction) Constructor |
Creates a new writable data context with an existing transaction.
Namespace: SanteDB.OrmLiteAssembly: SanteDB.OrmLite (in SanteDB.OrmLite.dll) Version: 3.0.2081-alpha+d0a78774d3f97b9193d2ae2fef6d129ea9f29519
Syntaxpublic ReaderWriterLockingDataContext(
IDbProvider provider,
IDbConnection connection,
IDbTransaction tx
)
Public Sub New (
provider As IDbProvider,
connection As IDbConnection,
tx As IDbTransaction
)
public:
ReaderWriterLockingDataContext(
IDbProvider^ provider,
IDbConnection^ connection,
IDbTransaction^ tx
)
new :
provider : IDbProvider *
connection : IDbConnection *
tx : IDbTransaction -> ReaderWriterLockingDataContextParameters
- 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.
RemarksThis constructor will mark the data context as writable and lock the provider.
See Also