Sdílet prostřednictvím


IDbCommandInterceptor.ReaderExecuted Metoda

Definice

Volá se okamžitě po volání ExecuteReader()EF .

public System.Data.Common.DbDataReader ReaderExecuted (System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData eventData, System.Data.Common.DbDataReader result);
public virtual System.Data.Common.DbDataReader ReaderExecuted (System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData eventData, System.Data.Common.DbDataReader result);
abstract member ReaderExecuted : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData * System.Data.Common.DbDataReader -> System.Data.Common.DbDataReader
abstract member ReaderExecuted : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData * System.Data.Common.DbDataReader -> System.Data.Common.DbDataReader
override this.ReaderExecuted : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData * System.Data.Common.DbDataReader -> System.Data.Common.DbDataReader
Public Function ReaderExecuted (command As DbCommand, eventData As CommandExecutedEventData, result As DbDataReader) As DbDataReader
Public Overridable Function ReaderExecuted (command As DbCommand, eventData As CommandExecutedEventData, result As DbDataReader) As DbDataReader

Parametry

command
DbCommand

Příkaz.

eventData
CommandExecutedEventData

Kontextové informace o příkazu a spuštění.

result
DbDataReader

Výsledek volání metody ExecuteReader(). Tato hodnota se obvykle používá jako návratová hodnota pro implementaci této metody.

Návraty

Výsledek, který EF použije. Implementace této metody pro jakýkoli zachytávací objekt, který se nepokouší změnit výsledek, je vrátit result hodnotu předanou v.

Poznámky

Tato metoda je stále volána, pokud zachytávací modul potlačil provádění příkazu v ReaderExecuting(DbCommand, CommandEventData, InterceptionResult<DbDataReader>). V tomto případě result je výsledek vrácený nástrojem ReaderExecuting(DbCommand, CommandEventData, InterceptionResult<DbDataReader>).

Platí pro