Share via


RelationalComplexTypePropertyBuilderExtensions.HasJsonPropertyName Method

Definition

Overloads

HasJsonPropertyName(ComplexTypePropertyBuilder, String)

Configures the property of an entity mapped to a JSON column, mapping the entity property to a specific JSON property, rather than using the entity property name.

HasJsonPropertyName<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)

Configures the property of an entity mapped to a JSON column, mapping the entity property to a specific JSON property, rather than using the entity property name.

HasJsonPropertyName(ComplexTypePropertyBuilder, String)

Configures the property of an entity mapped to a JSON column, mapping the entity property to a specific JSON property, rather than using the entity property name.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder HasJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder propertyBuilder, string? name);
static member HasJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder
<Extension()>
Public Function HasJsonPropertyName (propertyBuilder As ComplexTypePropertyBuilder, name As String) As ComplexTypePropertyBuilder

Parameters

propertyBuilder
ComplexTypePropertyBuilder

The builder for the property being configured.

name
String

JSON property name to be used.

Returns

The same builder instance so that multiple calls can be chained.

Applies to

HasJsonPropertyName<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)

Configures the property of an entity mapped to a JSON column, mapping the entity property to a specific JSON property, rather than using the entity property name.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> HasJsonPropertyName<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> propertyBuilder, string? name);
static member HasJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property>
<Extension()>
Public Function HasJsonPropertyName(Of TProperty) (propertyBuilder As ComplexTypePropertyBuilder(Of TProperty), name As String) As ComplexTypePropertyBuilder(Of TProperty)

Type Parameters

TProperty

Parameters

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

The builder for the property being configured.

name
String

JSON property name to be used.

Returns

The same builder instance so that multiple calls can be chained.

Applies to