共用方式為


DatabaseLogFormatter.BeginningTransaction 方法

定義

除非覆寫,否則不會寫入記錄。

public virtual 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
override this.BeginningTransaction : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext -> unit
Public Overridable Sub BeginningTransaction (connection As DbConnection, interceptionContext As BeginTransactionInterceptionContext)

參數

connection
DbConnection

開始交易的連接。

interceptionContext
BeginTransactionInterceptionContext

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

實作

適用於