Partager via


IConventionEntityTypeBuilder.CanRemoveServiceProperty Méthode

Définition

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 à