共用方式為


DatabaseLogFormatter.NonQueryExecuted 方法

定義

呼叫 或其其中一個非同步對應專案之後,就會呼叫 ExecuteNonQuery() 這個方法。 預設實作會停止從 GetStopwatch(DbCommandInterceptionContext) 傳回的停止監看式,並呼叫 Executed<TResult>(DbCommand, DbCommandInterceptionContext<TResult>)

public virtual void NonQueryExecuted (System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<int> interceptionContext);
abstract member NonQueryExecuted : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<int> -> unit
override this.NonQueryExecuted : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<int> -> unit
Public Overridable Sub NonQueryExecuted (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of Integer))

參數

command
DbCommand

正在執行的命令。

interceptionContext
DbCommandInterceptionContext<Int32>

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

實作

適用於