Sdílet prostřednictvím


MutableEntityTypeExtensions.AddIndex Metoda

Definice

Přidá index k tomuto typu entity.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
<Extension()>
Public Function AddIndex (entityType As IMutableEntityType, property As IMutableProperty) As IMutableIndex

Parametry

entityType
IMutableEntityType

Typ entity.

property
IMutableProperty

Vlastnost, která má být indexována.

Návraty

Nově vytvořený index.

Platí pro