DatabaseLogFormatter.ScalarExecuting 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.
Cette méthode est appelée avant qu’un appel à ExecuteScalar() ou l’un de ses équivalents asynchrones soit effectué. L’implémentation par défaut appelle Executing<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) et démarre le chronomètre retourné à partir de GetStopwatch(DbCommandInterceptionContext).
public virtual void ScalarExecuting (System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<object> interceptionContext);
abstract member ScalarExecuting : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<obj> -> unit
override this.ScalarExecuting : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<obj> -> unit
Public Overridable Sub ScalarExecuting (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of Object))
Paramètres
- command
- DbCommand
Commande en cours d’exécution.
- interceptionContext
- DbCommandInterceptionContext<Object>
Informations contextuelles associées à l’appel.