RelationalEntityTypeExtensions.GetDefaultTableName Method

Definition

Overloads

GetDefaultTableName(IReadOnlyEntityType, Boolean)

Returns the default table name that would be used for this entity type.

GetDefaultTableName(IEntityType)

Returns the default table name that would be used for this entity type.

GetDefaultTableName(IEntityType, Boolean)

Returns the default table name that would be used for this entity type.

GetDefaultTableName(IReadOnlyEntityType, Boolean)

Returns the default table name that would be used for this entity type.

public static string? GetDefaultTableName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType, bool truncate = true);
static member GetDefaultTableName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType * bool -> string
<Extension()>
Public Function GetDefaultTableName (entityType As IReadOnlyEntityType, Optional truncate As Boolean = true) As String

Parameters

entityType
IReadOnlyEntityType

The entity type to get the table name for.

truncate
Boolean

A value indicating whether the name should be truncated to the max identifier length.

Returns

The default name of the table to which the entity type would be mapped.

Applies to

GetDefaultTableName(IEntityType)

Returns the default table name that would be used for this entity type.

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

Parameters

entityType
IEntityType

The entity type to get the table name for.

Returns

The default name of the table to which the entity type would be mapped.

Applies to

GetDefaultTableName(IEntityType, Boolean)

Returns the default table name that would be used for this entity type.

public static string GetDefaultTableName (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, bool truncate = true);
static member GetDefaultTableName : Microsoft.EntityFrameworkCore.Metadata.IEntityType * bool -> string
<Extension()>
Public Function GetDefaultTableName (entityType As IEntityType, Optional truncate As Boolean = true) As String

Parameters

entityType
IEntityType

The entity type to get the table name for.

truncate
Boolean

A value indicating whether the name should be truncated to the max identifier length.

Returns

The default name of the table to which the entity type would be mapped.

Applies to