SQLProvider

TransactionUtils Module

Utility functions for converting between different transaction isolation level representations.

Functions and values

Function or value Description

ensureTransaction transactionOptions

Full Usage: ensureTransaction transactionOptions

Parameters:
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.

transactionOptions : TransactionOptions
Returns: TransactionScope

toSystemDataIsolationLevel isolationLevel

Full Usage: toSystemDataIsolationLevel isolationLevel

Parameters:
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

isolationLevel : IsolationLevel
Returns: IsolationLevel

Type something to start searching.