Share via


IConventionEntityType.AddIndex Methode

Definition

Überlädt

AddIndex(IConventionProperty, Boolean)

Fügt diesem Entitätstyp einen Index hinzu.

AddIndex(IReadOnlyList<IConventionProperty>, Boolean)

Fügt diesem Entitätstyp einen unbenannten Index hinzu.

AddIndex(IConventionProperty, String, Boolean)

Fügt diesem Entitätstyp einen benannten Index hinzu.

AddIndex(IReadOnlyList<IConventionProperty>, String, Boolean)

Fügt diesem Entitätstyp einen benannten Index hinzu.

AddIndex(IConventionProperty, Boolean)

Fügt diesem Entitätstyp einen Index hinzu.

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

Parameter

property
IConventionProperty

Die zu indizierte Eigenschaft.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der neu erstellte Index.

Gilt für:

AddIndex(IReadOnlyList<IConventionProperty>, Boolean)

Fügt diesem Entitätstyp einen unbenannten Index hinzu.

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

Parameter

properties
IReadOnlyList<IConventionProperty>

Die Eigenschaften, die indiziert werden sollen.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der neu erstellte Index.

Gilt für:

AddIndex(IConventionProperty, String, Boolean)

Fügt diesem Entitätstyp einen benannten Index hinzu.

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

Parameter

property
IConventionProperty

Die zu indizierte Eigenschaft.

name
String

Der Name des Index.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der neu erstellte Index.

Gilt für:

AddIndex(IReadOnlyList<IConventionProperty>, String, Boolean)

Fügt diesem Entitätstyp einen benannten Index hinzu.

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

Parameter

properties
IReadOnlyList<IConventionProperty>

Die Eigenschaften, die indiziert werden sollen.

name
String

Der Name des Index.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der neu erstellte Index.

Gilt für: