Freigeben über


RelationalIndexExtensions.SetName Methode

Definition

Überlädt

SetName(IMutableIndex, String)
Veraltet.

Legt den Namen des Indexes in der Datenbank fest.

SetName(IConventionIndex, String, Boolean)
Veraltet.

Legt den Namen des Indexes in der Datenbank fest.

SetName(IMutableIndex, String)

Achtung

Use SetDatabaseName() instead.

Legt den Namen des Indexes in der Datenbank fest.

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)

Parameter

index
IMutableIndex

Der Index.

name
String

Der festzulegende Wert.

Attribute

Gilt für:

SetName(IConventionIndex, String, Boolean)

Achtung

Use SetDatabaseName() instead.

Legt den Namen des Indexes in der Datenbank fest.

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)

Parameter

index
IConventionIndex

Der Index.

name
String

Der festzulegende Wert.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Attribute

Gilt für: