DatabaseFacade.BeginTransaction Method

Definition

Starts 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

IDbContextTransaction

A IDbContextTransaction that represents the started transaction.

Applies to