RelationalEntityTypeExtensions.GetDefaultTableName 方法

定义

重载

GetDefaultTableName(IReadOnlyEntityType, Boolean)

返回将用于此实体类型的默认表名称。

GetDefaultTableName(IEntityType)

返回将用于此实体类型的默认表名称。

GetDefaultTableName(IEntityType, Boolean)

返回将用于此实体类型的默认表名称。

GetDefaultTableName(IReadOnlyEntityType, Boolean)

返回将用于此实体类型的默认表名称。

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

参数

entityType
IReadOnlyEntityType

要获取其表名的实体类型。

truncate
Boolean

一个 值,该值指示是否应将名称截断为最大标识符长度。

返回

实体类型将映射到的表的默认名称。

适用于

GetDefaultTableName(IEntityType)

返回将用于此实体类型的默认表名称。

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

参数

entityType
IEntityType

要获取其表名的实体类型。

返回

实体类型将映射到的表的默认名称。

适用于

GetDefaultTableName(IEntityType, Boolean)

返回将用于此实体类型的默认表名称。

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

参数

entityType
IEntityType

要获取其表名的实体类型。

truncate
Boolean

一个 值,该值指示是否应将名称截断为最大标识符长度。

返回

实体类型将映射到的表的默认名称。

适用于