共用方式為


IDbCommandInterceptor.NonQueryExecuted 方法

定義

呼叫 或其其中一個非同步對應專案之後,就會呼叫 ExecuteNonQuery() 這個方法。 Entity Framework 使用的結果可以藉由設定 Result 來變更。

public 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
Public Sub NonQueryExecuted (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of Integer))

參數

command
DbCommand

正在執行的命令。

interceptionContext
DbCommandInterceptionContext<Int32>

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

備註

對於非同步作業,在非同步工作完成或失敗之前,不會呼叫此方法。

適用於