Sdílet prostřednictvím


ConventionEntityTypeExtensions.GetDeclaredIndexes Metoda

Definice

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

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

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

Parametry

entityType
IConventionEntityType

Typ entity.

Návraty

Deklarované indexy.

Platí pro