共用方式為


DbCommandInterceptor.ScalarExecuted 方法

定義

呼叫 或其其中一個非同步對應專案之後,就會呼叫 ExecuteScalar() 這個方法。 Entity Framework 使用的結果可以藉由設定 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>

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

實作

適用於