共用方式為


DatabaseLogFormatter.ScalarExecuted 方法

定義

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

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>

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

實作

適用於