IConventionEntityTypeBuilder.CanRemoveServiceProperty 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.
Retourne une valeur indiquant si la propriété de service peut être supprimée de ce type d’entité.
public bool CanRemoveServiceProperty (Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty serviceProperty, bool fromDataAnnotation = false);
abstract member CanRemoveServiceProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty * bool -> bool
Public Function CanRemoveServiceProperty (serviceProperty As IConventionServiceProperty, Optional fromDataAnnotation As Boolean = false) As Boolean
Paramètres
- serviceProperty
- IConventionServiceProperty
Propriété de service à supprimer.
- fromDataAnnotation
- Boolean
Indique si la configuration a été spécifiée à l’aide d’une annotation de données.
Retours
true
si la propriété de service peut être supprimée de ce type d’entité.
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