Freigeben über


ForeignKeyIndexConvention.AreIndexedBy Methode

Definition

Gibt einen Wert zurück, der angibt, ob die angegebenen Eigenschaften bereits von einem vorhandenen Index abgedeckt sind.

protected virtual bool AreIndexedBy (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool unique, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> coveringIndexProperties, bool coveringIndexUnique);
abstract member AreIndexedBy : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> bool
override this.AreIndexedBy : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> bool
Protected Overridable Function AreIndexedBy (properties As IReadOnlyList(Of IConventionProperty), unique As Boolean, coveringIndexProperties As IReadOnlyList(Of IConventionProperty), coveringIndexUnique As Boolean) As Boolean

Parameter

properties
IReadOnlyList<IConventionProperty>

Die zu überprüfenden Eigenschaften.

unique
Boolean

Gibt an, ob der zu erstellende Index eindeutig sein soll.

coveringIndexProperties
IReadOnlyList<IConventionProperty>

Die Eigenschaften eines vorhandenen Indexes.

coveringIndexUnique
Boolean

Gibt an, ob der vorhandene Index eindeutig ist.

Gibt zurück

true , wenn der vorhandene Index die angegebenen Eigenschaften abdeckt.

Gilt für: