Share via


RuntimeEntityType.AddIndex Methode

Definition

Fügt diesem Entitätstyp einen Index hinzu.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> properties, string? name = default, bool unique = false);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> * string * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
override this.AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> * string * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
Public Overridable Function AddIndex (properties As IReadOnlyList(Of RuntimeProperty), Optional name As String = Nothing, Optional unique As Boolean = false) As RuntimeIndex

Parameter

properties
IReadOnlyList<RuntimeProperty>

Die Eigenschaften, die indiziert werden sollen.

name
String

Der Name des Index.

unique
Boolean

Ein -Wert, der angibt, ob die den indizierten Eigenschaften zugewiesenen Werte eindeutig sind.

Gibt zurück

Der neu erstellte Index.

Gilt für: