共用方式為


IDbConnectionInterceptor.BeginningTransaction 方法

定義

在叫用之前 BeginTransaction(IsolationLevel) 呼叫。

public void BeginningTransaction (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext interceptionContext);
abstract member BeginningTransaction : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext -> unit
Public Sub BeginningTransaction (connection As DbConnection, interceptionContext As BeginTransactionInterceptionContext)

參數

connection
DbConnection

開始交易的連接。

interceptionContext
BeginTransactionInterceptionContext

與呼叫相關聯的內容資訊。

適用於