Udostępnij za pośrednictwem


MutableEntityTypeExtensions.AddIndex Metoda

Definicja

Dodaje indeks do tego typu jednostki.

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 jednostki.

property
IMutableProperty

Właściwość, która ma być indeksowana.

Zwraca

Nowo utworzony indeks.

Dotyczy