Click or drag to resize

ReaderWriterLockingDataContext(IDbProvider, IDbConnection, Boolean) Constructor

Creates a new data context, and optionally marks it read only.

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

Parameters

provider  IDbProvider
The underlying provider for this context.
connection  IDbConnection
The connection created by the provider for this context.
isReadonly  Boolean
True to mark the connection as read-only. Multiple read-only contexts can execute simultaneously. False to mark the connection writable. Only one writable context can execute simultaneously.
See Also