Database.BeginTransaction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for