Udostępnij za pośrednictwem


IConventionEntityType.AddIndex Metoda

Definicja

Przeciążenia

AddIndex(IConventionProperty, Boolean)

Dodaje indeks do tego typu jednostki.

AddIndex(IReadOnlyList<IConventionProperty>, Boolean)

Dodaje indeks nienazwany do tego typu jednostki.

AddIndex(IConventionProperty, String, Boolean)

Dodaje nazwany indeks do tego typu jednostki.

AddIndex(IReadOnlyList<IConventionProperty>, String, Boolean)

Dodaje nazwany indeks do tego typu jednostki.

AddIndex(IConventionProperty, Boolean)

Dodaje indeks do tego typu jednostki.

public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? AddIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, bool fromDataAnnotation = false);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Overridable Function AddIndex (property As IConventionProperty, Optional fromDataAnnotation As Boolean = false) As IConventionIndex

Parametry

property
IConventionProperty

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

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Nowo utworzony indeks.

Dotyczy

AddIndex(IReadOnlyList<IConventionProperty>, Boolean)

Dodaje indeks nienazwany do tego typu jednostki.

public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function AddIndex (properties As IReadOnlyList(Of IConventionProperty), Optional fromDataAnnotation As Boolean = false) As IConventionIndex

Parametry

properties
IReadOnlyList<IConventionProperty>

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

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Nowo utworzony indeks.

Dotyczy

AddIndex(IConventionProperty, String, Boolean)

Dodaje nazwany indeks do tego typu jednostki.

public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? AddIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Overridable Function AddIndex (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false) As IConventionIndex

Parametry

property
IConventionProperty

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

name
String

Nazwa indeksu.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Nowo utworzony indeks.

Dotyczy

AddIndex(IReadOnlyList<IConventionProperty>, String, Boolean)

Dodaje nazwany indeks do tego typu jednostki.

public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, string name, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, string name, bool fromDataAnnotation = false);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function AddIndex (properties As IReadOnlyList(Of IConventionProperty), name As String, Optional fromDataAnnotation As Boolean = false) As IConventionIndex

Parametry

properties
IReadOnlyList<IConventionProperty>

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

name
String

Nazwa indeksu.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Nowo utworzony indeks.

Dotyczy