DatabaseLogFormatter.Executed<TResult> Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Appelé chaque fois qu’une commande est terminée. L’implémentation par défaut de cette méthode filtre en DbContext définissant dans Context, le cas échéant, puis appelle LogResult<TResult>(DbCommand, DbCommandInterceptionContext<TResult>). Cette méthode est généralement remplacée uniquement pour modifier le comportement de filtrage de contexte.
public virtual void Executed<TResult>(System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult> interceptionContext);
abstract member Executed : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> -> unit
override this.Executed : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> -> unit
Public Overridable Sub Executed(Of TResult) (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of TResult))
Paramètres de type
- TResult
Type des résultats de l’opération.
Paramètres
- command
- DbCommand
Commande exécutée.
- interceptionContext
- DbCommandInterceptionContext<TResult>
Informations contextuelles associées à la commande.