Database.BeginTransaction Method

 

Begins a transaction on the underlying store connection.

Namespace:   System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodBeginTransaction()

Begins a transaction on the underlying store connection

System_CAPS_pubmethodBeginTransaction(IsolationLevel)

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


Database.BeginTransaction Method ()

Begins a transaction on the underlying store connection

public DbContextTransaction BeginTransaction()

Return Value

Type: System.Data.Entity.DbContextTransaction

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


Database.BeginTransaction Method (IsolationLevel)

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

public DbContextTransaction BeginTransaction(
	IsolationLevel isolationLevel
)

Parameters

isolationLevel
Type: System.Data.IsolationLevel

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

Return Value

Type: System.Data.Entity.DbContextTransaction

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