PropertyExtensions.IsUniqueIndex(IProperty) Methode

Definition

Achtung

Use IReadOnlyProperty.IsUniqueIndex

Ruft einen Wert ab, der angibt, ob diese Eigenschaft als eindeutiger Index (oder Teil eines eindeutigen zusammengesetzten Indexes) verwendet wird.

C#
public static bool IsUniqueIndex (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
C#
[System.Obsolete("Use IReadOnlyProperty.IsUniqueIndex")]
public static bool IsUniqueIndex (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);

Parameter

property
IProperty

Die zu überprüfende Eigenschaft.

Gibt zurück

true , wenn die -Eigenschaft als eindeutiger Index verwendet wird, andernfalls false.

Attribute

Gilt für:

Produkt Versionen (Veraltet)
Entity Framework Core 5.0 (6.0)