Condividi tramite


RelationalIndexExtensions.SetName Metodo

Definizione

Overload

SetName(IMutableIndex, String)
Obsoleti.

Imposta il nome dell'indice nel database.

SetName(IConventionIndex, String, Boolean)
Obsoleti.

Imposta il nome dell'indice nel database.

SetName(IMutableIndex, String)

Attenzione

Use SetDatabaseName() instead.

Imposta il nome dell'indice nel database.

public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string name);
[System.Obsolete("Use SetDatabaseName() instead.")]
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string name);
[System.Obsolete("Use SetDatabaseName() instead.")]
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string? name);
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IMutableIndex * string -> unit
[<System.Obsolete("Use SetDatabaseName() instead.")>]
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IMutableIndex * string -> unit
<Extension()>
Public Sub SetName (index As IMutableIndex, name As String)

Parametri

index
IMutableIndex

Indice.

name
String

Il valore da impostare.

Attributi

Si applica a

SetName(IConventionIndex, String, Boolean)

Attenzione

Use SetDatabaseName() instead.

Imposta il nome dell'indice nel database.

public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string name, bool fromDataAnnotation = false);
[System.Obsolete("Use SetDatabaseName() instead.")]
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string name, bool fromDataAnnotation = false);
[System.Obsolete("Use SetDatabaseName() instead.")]
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string? name, bool fromDataAnnotation = false);
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * string * bool -> unit
[<System.Obsolete("Use SetDatabaseName() instead.")>]
static member SetName : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * string * bool -> unit
<Extension()>
Public Sub SetName (index As IConventionIndex, name As String, Optional fromDataAnnotation As Boolean = false)

Parametri

index
IConventionIndex

Indice.

name
String

Il valore da impostare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Attributi

Si applica a