DatabaseLogFormatter.Executing<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 sur le point d’être exécutée. L’implémentation par défaut de cette méthode filtre DbContext en définissant en Context, le cas échéant, puis appelle LogCommand<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 Executing<TResult>(System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult> interceptionContext);
abstract member Executing : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> -> unit
override this.Executing : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> -> unit
Public Overridable Sub Executing(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 qui sera exécutée.
- interceptionContext
- DbCommandInterceptionContext<TResult>
Informations contextuelles associées à la commande.