RelationalConnection.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 new transaction. |
BeginTransaction(IsolationLevel) |
Begins a new transaction. |
BeginTransaction()
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
Begins a new transaction.
public virtual Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction BeginTransaction ();
abstract member BeginTransaction : unit -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
override this.BeginTransaction : unit -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Overridable Function BeginTransaction () As IDbContextTransaction
Returns
The newly created transaction.
Implements
Applies to
BeginTransaction(IsolationLevel)
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
Begins a new transaction.
public virtual Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction BeginTransaction (System.Data.IsolationLevel isolationLevel);
abstract member BeginTransaction : System.Data.IsolationLevel -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
override this.BeginTransaction : System.Data.IsolationLevel -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Overridable Function BeginTransaction (isolationLevel As IsolationLevel) As IDbContextTransaction
Parameters
- isolationLevel
- IsolationLevel
The isolation level to use for the transaction.
Returns
The newly created transaction.
Implements
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework