ForeignKeyIndexConvention.AreIndexedBy Method

Definition

Returns a value indicating whether the given properties are already covered by an existing index.

C#
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);

Parameters

properties
IReadOnlyList<IConventionProperty>

The properties to check.

unique
Boolean

Whether the index to create should be unique.

coveringIndexProperties
IReadOnlyList<IConventionProperty>

The properties of an existing index.

coveringIndexUnique
Boolean

Whether the existing index is unique.

Returns

true if the existing index covers the given properties.

Applies to

Proizvod Verzije
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0