Share via


DbCommandInterceptor.ReaderExecuted Méthode

Définition

Appelé immédiatement après qu’EF appelle ExecuteReader().

Cette méthode est toujours appelée si un intercepteur a supprimé l’exécution d’une commande dans ReaderExecuting(DbCommand, CommandEventData, InterceptionResult<DbDataReader>). Dans ce cas, result est le résultat retourné par ReaderExecuting(DbCommand, CommandEventData, InterceptionResult<DbDataReader>).

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
override this.ReaderExecuted : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData * System.Data.Common.DbDataReader -> System.Data.Common.DbDataReader
Public Overridable Function ReaderExecuted (command As DbCommand, eventData As CommandExecutedEventData, result As DbDataReader) As DbDataReader

Paramètres

command
DbCommand

Commande.

eventData
CommandExecutedEventData

Informations contextuelles sur la commande et l’exécution.

result
DbDataReader

Résultat de l’appel à ExecuteReader(). Cette valeur est généralement utilisée comme valeur de retour pour l’implémentation de cette méthode.

Retours

Résultat utilisé par EF. Une implémentation normale de cette méthode pour tout intercepteur qui ne tente pas de modifier le résultat consiste à retourner la result valeur passée.

Implémente

S’applique à