Sdílet prostřednictvím


MutableEntityTypeExtensions.GetOrAddIndex Metoda

Definice

Přetížení

GetOrAddIndex(IMutableEntityType, IMutableProperty)

Získá index definovaný v dané vlastnosti nebo vytvoří nový, pokud není již definován.

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)

Získá index definovaný v dané vlastnosti nebo vytvoří nový, pokud není již definován.

GetOrAddIndex(IMutableEntityType, IMutableProperty)

Získá index definovaný v dané vlastnosti nebo vytvoří nový, pokud není již definován.

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

Parametry

entityType
IMutableEntityType

Typ entity, do které chcete získat nebo přidat index.

property
IMutableProperty

Vlastnost, která se má indexovat.

Návraty

Existující nebo nově vytvořený index.

Platí pro

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)

Získá index definovaný v dané vlastnosti nebo vytvoří nový, pokud není již definován.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableIndex GetOrAddIndex (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
static member GetOrAddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
<Extension()>
Public Function GetOrAddIndex (entityType As IMutableEntityType, properties As IReadOnlyList(Of IMutableProperty)) As IMutableIndex

Parametry

entityType
IMutableEntityType

Typ entity, do které chcete získat nebo přidat index.

properties
IReadOnlyList<IMutableProperty>

Vlastnosti, které se mají indexovat.

Návraty

Existující nebo nově vytvořený index.

Platí pro