RelationalConnection.BeginTransaction 方法

定义

重载

BeginTransaction()

开始一个新事务。

BeginTransaction(IsolationLevel)

开始一个新事务。

BeginTransaction()

开始一个新事务。

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

返回

新建的事务。

实现

适用于

BeginTransaction(IsolationLevel)

开始一个新事务。

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

参数

isolationLevel
IsolationLevel

要用于该事务的隔离级别。

返回

新建的事务。

实现

适用于