Compartilhar via


RelationalIndexExtensions.SetName Método

Definição

Sobrecargas

SetName(IMutableIndex, String)
Obsoleto.

Define o nome do índice no banco de dados.

SetName(IConventionIndex, String, Boolean)
Obsoleto.

Define o nome do índice no banco de dados.

SetName(IMutableIndex, String)

Cuidado

Use SetDatabaseName() instead.

Define o nome do índice no banco de dados.

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

O índice.

name
String

O valor a ser definido.

Atributos

Aplica-se a

SetName(IConventionIndex, String, Boolean)

Cuidado

Use SetDatabaseName() instead.

Define o nome do índice no banco de dados.

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

O índice.

name
String

O valor a ser definido.

fromDataAnnotation
Boolean

Indica se a configuração foi especificada usando uma anotação de dados.

Atributos

Aplica-se a