Condividi tramite


RuntimeEntityType.AddIndex Metodo

Definizione

Aggiunge un indice a questo tipo di entità.

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

Parametri

properties
IReadOnlyList<RuntimeProperty>

Proprietà da indicizzare.

name
String

Nome dell'indice.

unique
Boolean

Valore che indica se i valori assegnati alle proprietà indicizzate sono univoci.

Restituisce

Indice appena creato.

Si applica a