共用方式為


DatabaseLogFormatter.ReaderExecuting 方法

定義

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

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

參數

command
DbCommand

正在執行的命令。

interceptionContext
DbCommandInterceptionContext<DbDataReader>

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

實作

適用於