RelationalEntityTypeExtensions.GetJsonPropertyName 方法

定义

获取用于映射到 JSON 列的给定实体的 JSON 属性值。

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

参数

entityType
IReadOnlyEntityType

实体类型。

返回

用于存储此实体类型的 JSON 属性的值。 null 为未映射到 JSON 列的实体返回 。

注解

除非显式配置,否则将使用导航名称。

适用于