IRelationalTransactionManager.BeginTransaction(IsolationLevel) 方法

定义

开始一个新事务。

public Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction BeginTransaction (System.Data.IsolationLevel isolationLevel);
abstract member BeginTransaction : System.Data.IsolationLevel -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Function BeginTransaction (isolationLevel As IsolationLevel) As IDbContextTransaction

参数

isolationLevel
IsolationLevel

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

返回

新创建的事务。

适用于