Partager via


IConventionEntityTypeBuilder.CanRemoveIndex(IConventionIndex, Boolean) Méthode

Définition

Retourne une valeur indiquant si l’index peut être supprimé de ce type d’entité.

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

Paramètres

index
IConventionIndex

Index à supprimer.

fromDataAnnotation
Boolean

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

Retours

true si le type d’entité peut être marqué comme sans clé.

S’applique à