Udostępnij przez


IDbCommandInterceptor.ReaderExecuted Metoda

Definicja

Ta metoda jest wywoływana po wywołaniu metody ExecuteReader(CommandBehavior) lub jednej z jego odpowiedników asynchronicznych. Wynik używany przez program Entity Framework można zmienić, ustawiając wartość 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))

Parametry

command
DbCommand

Wykonywane polecenie.

interceptionContext
DbCommandInterceptionContext<DbDataReader>

Informacje kontekstowe skojarzone z wywołaniem.

Uwagi

W przypadku operacji asynchronicznych ta metoda nie jest wywoływana do momentu ukończenia lub niepowodzenia zadania asynchronicznego.

Dotyczy