Database.BeginTransaction Method
Begins a transaction on the underlying store connection.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | BeginTransaction() | Begins a transaction on the underlying store connection |
![]() | BeginTransaction(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
Return Value
Type: System.Data.Entity.DbContextTransactiona 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
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.DbContextTransactiona DbContextTransaction object wrapping access to the underlying store's transaction object