Udostępnij za pośrednictwem


MutableEntityTypeExtensions.GetOrAddIndex Metoda

Definicja

Przeciążenia

GetOrAddIndex(IMutableEntityType, IMutableProperty)

Pobiera indeks zdefiniowany dla danej właściwości lub tworzy nowy, jeśli jeszcze go nie zdefiniowano.

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)

Pobiera indeks zdefiniowany dla danej właściwości lub tworzy nowy, jeśli jeszcze go nie zdefiniowano.

GetOrAddIndex(IMutableEntityType, IMutableProperty)

Pobiera indeks zdefiniowany dla danej właściwości lub tworzy nowy, jeśli jeszcze go nie zdefiniowano.

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 jednostki do pobrania lub dodania indeksu.

property
IMutableProperty

Właściwość, która ma zostać zindeksowana.

Zwraca

Istniejący lub nowo utworzony indeks.

Dotyczy

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)

Pobiera indeks zdefiniowany dla danej właściwości lub tworzy nowy, jeśli jeszcze go nie zdefiniowano.

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 jednostki do pobrania lub dodania indeksu.

properties
IReadOnlyList<IMutableProperty>

Właściwości do indeksowania.

Zwraca

Istniejący lub nowo utworzony indeks.

Dotyczy