共用方式為


DatabaseLogFormatter.ScalarExecuting 方法

定義

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

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

參數

command
DbCommand

正在執行的命令。

interceptionContext
DbCommandInterceptionContext<Object>

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

實作

適用於