Database.BeginTransaction Database.BeginTransaction Database.BeginTransaction Method

Definition

Overloads

BeginTransaction() BeginTransaction() BeginTransaction()

Begins a transaction on the underlying store connection

BeginTransaction(IsolationLevel) BeginTransaction(IsolationLevel)

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

BeginTransaction() BeginTransaction() 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

BeginTransaction(IsolationLevel) 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 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