共用方式為


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

要用於交易的隔離等級。

傳回

新建立的交易。

適用於