RelationalIndexExtensions.SetName Method

Definition

Overloads

SetName(IMutableIndex, String)
Obsolete.

Sets the name of the index in the database.

SetName(IConventionIndex, String, Boolean)
Obsolete.

Sets the name of the index in the database.

SetName(IMutableIndex, String)

Source:
RelationalIndexExtensions.cs
Source:
RelationalIndexExtensions.cs
Source:
RelationalIndexExtensions.cs
Source:
RelationalIndexExtensions.cs

Caution

Use SetDatabaseName() instead.

Sets the name of the index in the database.

C#
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string name);
C#
[System.Obsolete("Use SetDatabaseName() instead.")]
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string name);
C#
[System.Obsolete("Use SetDatabaseName() instead.")]
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string? name);

Parameters

index
IMutableIndex

The index.

name
String

The value to set.

Attributes

Applies to

Entity Framework Core 6.0 ja muud versioonid
Toode Versioonid (aegunud)
Entity Framework Core 3.0, 3.1 (5.0, 6.0)

SetName(IConventionIndex, String, Boolean)

Source:
RelationalIndexExtensions.cs
Source:
RelationalIndexExtensions.cs
Source:
RelationalIndexExtensions.cs
Source:
RelationalIndexExtensions.cs

Caution

Use SetDatabaseName() instead.

Sets the name of the index in the database.

C#
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string name, bool fromDataAnnotation = false);
C#
[System.Obsolete("Use SetDatabaseName() instead.")]
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string name, bool fromDataAnnotation = false);
C#
[System.Obsolete("Use SetDatabaseName() instead.")]
public static void SetName (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string? name, bool fromDataAnnotation = false);

Parameters

index
IConventionIndex

The index.

name
String

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Attributes

Applies to

Entity Framework Core 6.0 ja muud versioonid
Toode Versioonid (aegunud)
Entity Framework Core 3.0, 3.1 (5.0, 6.0)