RelationalEntityTypeExtensions.GetTableName Method

Definition

Overloads

GetTableName(IEntityType)

Returns the name of the table to which the entity type is mapped or null if not mapped to a table.

GetTableName(IReadOnlyEntityType)

Returns the name of the table to which the entity type is mapped or null if not mapped to a table.

GetTableName(IEntityType)

Returns the name of the table to which the entity type is mapped or null if not mapped to a table.

public static string GetTableName (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetTableName : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> string
<Extension()>
Public Function GetTableName (entityType As IEntityType) As String

Parameters

entityType
IEntityType

The entity type to get the table name for.

Returns

The name of the table to which the entity type is mapped.

Applies to

GetTableName(IReadOnlyEntityType)

Returns the name of the table to which the entity type is mapped or null if not mapped to a table.

public static string? GetTableName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member GetTableName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> string
<Extension()>
Public Function GetTableName (entityType As IReadOnlyEntityType) As String

Parameters

entityType
IReadOnlyEntityType

The entity type to get the table name for.

Returns

The name of the table to which the entity type is mapped.

Applies to