语言

RelationalComplexPropertyExtensions.GetJsonPropertyName 方法

定义

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

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

参数

complexProperty
IReadOnlyComplexProperty

复杂属性。

返回

用于存储此复杂属性值的 JSON 属性的值。 null 对于未映射到 JSON 列的实体的复杂属性,将返回该属性。

注解

除非显式配置,否则使用复杂属性名称。

适用于