IDbCommandInterceptor.CommandInitialized 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é après l’initialisation CommandText d’EF et d’autres configurations de commandes.
public virtual System.Data.Common.DbCommand CommandInitialized(Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData eventData, System.Data.Common.DbCommand result);
abstract member CommandInitialized : Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData * System.Data.Common.DbCommand -> System.Data.Common.DbCommand
override this.CommandInitialized : Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData * System.Data.Common.DbCommand -> System.Data.Common.DbCommand
Public Overridable Function CommandInitialized (eventData As CommandEndEventData, result As DbCommand) As DbCommand
Paramètres
- eventData
- CommandEndEventData
Informations contextuelles sur la commande et l’exécution.
- result
- DbCommand
Commande. Cette valeur est généralement utilisée comme valeur de retour pour l’implémentation de cette méthode.
Retours
Résultat que EF utilisera.
Une implémentation de cette méthode pour tout intercepteur qui ne tente pas de modifier le résultat consiste à retourner la result valeur passée.