語言

IDbCommandInterceptor.ReaderExecuted 方法

定義

此方法在呼叫 或 ExecuteReader(CommandBehavior) 其非同步對應節點後被呼叫。 實體框架所使用的結果可透過設定 Result來更改。

public 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
Public Sub ReaderExecuted (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of DbDataReader))

參數

command
DbCommand

命令正在執行。

interceptionContext
DbCommandInterceptionContext<DbDataReader>

與通話相關的情境資訊。

備註

對於非同步操作,此方法直到非同步任務完成或失敗後才會被呼叫。

適用於