DatabaseLogFormatter.ReaderExecuting 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
此方法會在呼叫 或 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>
與通話相關的情境資訊。