Share via


RelationalComplexPropertyExtensions.GetJsonPropertyName Method

Definition

Gets the value of JSON property name used for the given complex property of an entity mapped to a JSON column.

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

Parameters

complexProperty
IReadOnlyComplexProperty

The complex property.

Returns

The value for the JSON property used to store the value of this complex property. null is returned for complex properties of entities that are not mapped to a JSON column.

Remarks

Unless configured explicitly, complex property name is used.

Applies to