Share via


Database.BeginTransaction Method

Definition

Overloads

BeginTransaction()

Begins a transaction on the underlying store connection

BeginTransaction(IsolationLevel)

Begins a transaction on the underlying store connection using the specified isolation level

BeginTransaction()

Begins a transaction on the underlying store connection

public System.Data.Entity.DbContextTransaction BeginTransaction ();
member this.BeginTransaction : unit -> System.Data.Entity.DbContextTransaction
Public Function BeginTransaction () As DbContextTransaction

Returns

a DbContextTransaction object wrapping access to the underlying store's transaction object

Applies to

BeginTransaction(IsolationLevel)

Begins a transaction on the underlying store connection using the specified isolation level

public System.Data.Entity.DbContextTransaction BeginTransaction (System.Data.IsolationLevel isolationLevel);
member this.BeginTransaction : System.Data.IsolationLevel -> System.Data.Entity.DbContextTransaction

Parameters

isolationLevel
IsolationLevel

The database isolation level with which the underlying store transaction will be created

Returns

a DbContextTransaction object wrapping access to the underlying store's transaction object

Applies to