RelationalConnection.ConnectionBeginTransaction(IsolationLevel) Method

Definition

Template method that by default calls BeginDbTransaction(IsolationLevel) but can be overridden by providers to make a different call instead.

protected virtual System.Data.Common.DbTransaction ConnectionBeginTransaction (System.Data.IsolationLevel isolationLevel);
abstract member ConnectionBeginTransaction : System.Data.IsolationLevel -> System.Data.Common.DbTransaction
override this.ConnectionBeginTransaction : System.Data.IsolationLevel -> System.Data.Common.DbTransaction
Protected Overridable Function ConnectionBeginTransaction (isolationLevel As IsolationLevel) As DbTransaction

Parameters

isolationLevel
IsolationLevel

The isolation level to use for the transaction.

Returns

The newly created transaction.

Applies to