RelationalIndexExtensions.SetDatabaseName Method

Definition

Overloads

SetDatabaseName(IMutableIndex, String)

Sets the name of the index in the database.

SetDatabaseName(IConventionIndex, String, Boolean)

Sets the name of the index in the database.

SetDatabaseName(IMutableIndex, String)

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

Sets the name of the index in the database.

C#
public static void SetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string name);
C#
public static void SetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string? name);

Parameters

index
IMutableIndex

The index.

name
String

The value to set.

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0

SetDatabaseName(IConventionIndex, String, Boolean)

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

Sets the name of the index in the database.

C#
public static string SetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string name, bool fromDataAnnotation = false);
C#
public static string? SetDatabaseName (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.

Returns

The configured value.

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0