語言

DbCommandInterceptor.ScalarExecuted 方法

定義

此方法在呼叫 或 ExecuteScalar() 其非同步對應節點後被呼叫。 實體框架所使用的結果可透過設定 Result來更改。

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

參數

command
DbCommand

命令正在執行。

interceptionContext
DbCommandInterceptionContext<Object>

與通話相關的情境資訊。

實作

適用於