Udostępnij za pośrednictwem


IMutableEntityType.AddIndex Metoda

Definicja

Przeciążenia

AddIndex(IMutableProperty)

Dodaje indeks nienazwany do tego typu jednostki.

AddIndex(IReadOnlyList<IMutableProperty>)

Dodaje indeks nienazwany do tego typu jednostki.

AddIndex(IMutableProperty, String)

Dodaje nazwany indeks do tego typu jednostki.

AddIndex(IReadOnlyList<IMutableProperty>, String)

Dodaje nazwany indeks do tego typu jednostki.

AddIndex(IMutableProperty)

Dodaje indeks nienazwany do tego typu jednostki.

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Overridable Function AddIndex (property As IMutableProperty) As IMutableIndex

Parametry

property
IMutableProperty

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

Zwraca

Nowo utworzony indeks.

Dotyczy

AddIndex(IReadOnlyList<IMutableProperty>)

Dodaje indeks nienazwany do tego typu jednostki.

public Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Function AddIndex (properties As IReadOnlyList(Of IMutableProperty)) As IMutableIndex

Parametry

properties
IReadOnlyList<IMutableProperty>

Właściwości, które mają być indeksowane.

Zwraca

Nowo utworzony indeks.

Dotyczy

AddIndex(IMutableProperty, String)

Dodaje nazwany indeks do tego typu jednostki.

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string name);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Overridable Function AddIndex (property As IMutableProperty, name As String) As IMutableIndex

Parametry

property
IMutableProperty

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

name
String

Nazwa indeksu.

Zwraca

Nowo utworzony indeks.

Dotyczy

AddIndex(IReadOnlyList<IMutableProperty>, String)

Dodaje nazwany indeks do tego typu jednostki.

public Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties, string name);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Function AddIndex (properties As IReadOnlyList(Of IMutableProperty), name As String) As IMutableIndex

Parametry

properties
IReadOnlyList<IMutableProperty>

Właściwości, które mają być indeksowane.

name
String

Nazwa indeksu.

Zwraca

Nowo utworzony indeks.

Dotyczy