TransactionUtils Module
Utility functions for converting between different transaction isolation level representations.
Functions and values
| Function or value |
Description
|
Full Usage:
ensureTransaction transactionOptions
Parameters:
TransactionOptions
Returns: TransactionScope
|
Creates the TransactionScope that wraps a SubmitUpdates write batch. Called ONLY from the providers' ProcessUpdates/ProcessUpdatesAsync - reads are never wrapped. Uses TransactionScopeOption.Required: if the caller already opened an ambient transaction this enlists in it (and the caller's isolation level applies, not the one passed here); otherwise it starts a fresh standalone transaction using transactionOptions. Pass IsolationLevel.DontCreateTransaction to skip creating a scope entirely.
|
Full Usage:
toSystemDataIsolationLevel isolationLevel
Parameters:
IsolationLevel
Returns: IsolationLevel
|
Converts SQL provider isolation level to System.Data.IsolationLevel. Use this when you need to work directly with ADO.NET connection transactions. param isolationLevel: The SQL provider isolation level returns: The corresponding System.Data.IsolationLevel
|