Sdílet prostřednictvím


EntityTypeExtensions.GetDeclaredIndexes(IEntityType) Metoda

Definice

Získá všechny indexy deklarované na daném IEntityType.

Tato metoda nevrací indexy deklarované u základních typů. Je to užitečné při iteraci u všech typů entit, abyste se vyhnuli zpracování stejného indexu více než jednou. Slouží GetForeignKeys() také k vrácení indexů deklarovaných na základních typech.

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IIndex> GetDeclaredIndexes (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetDeclaredIndexes : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IIndex>
<Extension()>
Public Function GetDeclaredIndexes (entityType As IEntityType) As IEnumerable(Of IIndex)

Parametry

entityType
IEntityType

Typ entity.

Návraty

Deklarované indexy.

Platí pro