Share via


RelationalComplexPropertyExtensions.SetJsonPropertyName Method

Definition

Overloads

Name Description
SetJsonPropertyName(IMutableComplexProperty, String)

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

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

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

SetJsonPropertyName(IMutableComplexProperty, String)

Source:
RelationalComplexPropertyExtensions.cs

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

public static void SetJsonPropertyName(this Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty complexProperty, string? name);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty * string -> unit
<Extension()>
Public Sub SetJsonPropertyName (complexProperty As IMutableComplexProperty, name As String)

Parameters

complexProperty
IMutableComplexProperty

The complex property.

name
String

The name to be used.

Applies to

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

Source:
RelationalComplexPropertyExtensions.cs

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

public static string? SetJsonPropertyName(this Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty complexProperty, string? name, bool fromDataAnnotation = false);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty * string * bool -> string
<Extension()>
Public Function SetJsonPropertyName (complexProperty As IConventionComplexProperty, name As String, Optional fromDataAnnotation As Boolean = false) As String

Parameters

complexProperty
IConventionComplexProperty

The complex property.

name
String

The name to be used.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to