語言

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>

與通話相關的情境資訊。

實作

適用於