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 une autre configuration de commande.
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 utilisé par EF.
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.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour