Compartir a través de


RelationalIndexExtensions.SetName Método

Definición

Sobrecargas

SetName(IMutableIndex, String)
Obsoletos.

Establece el nombre del índice en la base de datos.

SetName(IConventionIndex, String, Boolean)
Obsoletos.

Establece el nombre del índice en la base de datos.

SetName(IMutableIndex, String)

Precaución

Use SetDatabaseName() instead.

Establece el nombre del índice en la base de datos.

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)

Parámetros

index
IMutableIndex

Índice.

name
String

Valor que se va a establecer.

Atributos

Se aplica a

SetName(IConventionIndex, String, Boolean)

Precaución

Use SetDatabaseName() instead.

Establece el nombre del índice en la base de datos.

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)

Parámetros

index
IConventionIndex

Índice.

name
String

Valor que se va a establecer.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Atributos

Se aplica a