Partager via


IConventionEntityTypeBuilder.CanRemoveRelationship Méthode

Définition

Retourne une valeur indiquant si la clé étrangère peut être supprimée de ce type d’entité.

public bool CanRemoveRelationship (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey, bool fromDataAnnotation = false);
abstract member CanRemoveRelationship : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey * bool -> bool
Public Function CanRemoveRelationship (foreignKey As IConventionForeignKey, Optional fromDataAnnotation As Boolean = false) As Boolean

Paramètres

foreignKey
IConventionForeignKey

Clé étrangère à supprimer.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

true si la clé étrangère peut être supprimée de ce type d’entité.

S’applique à