RelationalIndexExtensions.GetDatabaseName Method

Definition

Overloads

GetDatabaseName(IIndex)

Returns the name of the index in the database.

GetDatabaseName(IReadOnlyIndex)

Returns the name of the index in the database.

GetDatabaseName(IIndex, StoreObjectIdentifier)

Returns the name of the index in the database.

GetDatabaseName(IReadOnlyIndex, StoreObjectIdentifier)

Returns the name of the index in the database.

GetDatabaseName(IIndex)

Source:
RelationalIndexExtensions.cs

Returns the name of the index in the database.

C#
public static string GetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IIndex index);

Parameters

index
IIndex

The index.

Returns

The name of the index in the database.

Applies to

Entity Framework Core 5.0
Product Versions
Entity Framework Core 5.0

GetDatabaseName(IReadOnlyIndex)

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

Returns the name of the index in the database.

C#
public static string GetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex index);
C#
public static string? GetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex index);

Parameters

index
IReadOnlyIndex

The index.

Returns

The name of the index in the database.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0

GetDatabaseName(IIndex, StoreObjectIdentifier)

Source:
RelationalIndexExtensions.cs

Returns the name of the index in the database.

C#
public static string GetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IIndex index, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);

Parameters

index
IIndex

The index.

storeObject
StoreObjectIdentifier

The identifier of the store object.

Returns

The name of the index in the database.

Applies to

Entity Framework Core 5.0
Product Versions
Entity Framework Core 5.0

GetDatabaseName(IReadOnlyIndex, StoreObjectIdentifier)

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

Returns the name of the index in the database.

C#
public static string? GetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex index, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);

Parameters

index
IReadOnlyIndex

The index.

storeObject
StoreObjectIdentifier

The identifier of the store object.

Returns

The name of the index in the database.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0