ServerClientSessionSharedBeginRead Method |
Transaction control, begin a read only transaction
Namespace:
VelocityDb.Session
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public override SessionBaseTransaction BeginRead(
bool doRecoveryCheck = false
)
Public Overrides Function BeginRead (
Optional doRecoveryCheck As Boolean = false
) As SessionBaseTransaction
public:
virtual SessionBaseTransaction^ BeginRead(
bool doRecoveryCheck = false
) override
abstract BeginRead :
?doRecoveryCheck : bool
(* Defaults:
let _doRecoveryCheck = defaultArg doRecoveryCheck false
*)
-> SessionBaseTransaction
override BeginRead :
?doRecoveryCheck : bool
(* Defaults:
let _doRecoveryCheck = defaultArg doRecoveryCheck false
*)
-> SessionBaseTransaction
Parameters
- doRecoveryCheck (Optional)
- Type: SystemBoolean
By default we do not check for a failed update transaction that requires reverting one or more database changes.
We don't do it by default because it can be a little costly.
Change this parameter to true if you prefer ensured consistency over better performance or make change only if you encounter an exception in the transaction.
Return Value
Type:
SessionBaseTransactionA transaction helper object.
See Also