共用方式為


DatabaseLogFormatter.ReaderExecuted 方法

定義

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

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

參數

command
DbCommand

正在執行的命令。

interceptionContext
DbCommandInterceptionContext<DbDataReader>

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

實作

適用於