RelationalTypeBaseExtensions.GetJsonPropertyName(IReadOnlyTypeBase) 方法

定义

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

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

参数

typeBase
IReadOnlyTypeBase

类型。

返回

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

注解

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

适用于