Share via


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>

与调用关联的上下文信息。

实现

适用于