RelationalConnection.BeginTransaction Method

Definition

Overloads

BeginTransaction()

Begins a new transaction.

BeginTransaction(IsolationLevel)

Begins a new transaction.

BeginTransaction()

Begins a new transaction.

public virtual Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction BeginTransaction ();
abstract member BeginTransaction : unit -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
override this.BeginTransaction : unit -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Overridable Function BeginTransaction () As IDbContextTransaction

Returns

The newly created transaction.

Implements

Applies to

BeginTransaction(IsolationLevel)

Begins a new transaction.

public virtual Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction BeginTransaction (System.Data.IsolationLevel isolationLevel);
abstract member BeginTransaction : System.Data.IsolationLevel -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
override this.BeginTransaction : System.Data.IsolationLevel -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Overridable Function BeginTransaction (isolationLevel As IsolationLevel) As IDbContextTransaction

Parameters

isolationLevel
IsolationLevel

The isolation level to use for the transaction.

Returns

The newly created transaction.

Implements

Applies to