共用方式為


DatabaseLogFormatter.StateGetting 方法

定義

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

public virtual void StateGetting (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext<System.Data.ConnectionState> interceptionContext);
abstract member StateGetting : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext<System.Data.ConnectionState> -> unit
override this.StateGetting : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext<System.Data.ConnectionState> -> unit
Public Overridable Sub StateGetting (connection As DbConnection, interceptionContext As DbConnectionInterceptionContext(Of ConnectionState))

參數

connection
DbConnection

連接。

interceptionContext
DbConnectionInterceptionContext<ConnectionState>

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

實作

適用於