Share via


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

A IDbContextTransaction that represents the started transaction.

Remarks

See Transactions in EF Core for more information and examples.

Applies to