RelationalPrimitiveCollectionBuilderExtensions.HasJsonPropertyName Method

Definition

Overloads

HasJsonPropertyName(PrimitiveCollectionBuilder, 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>(PrimitiveCollectionBuilder<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(PrimitiveCollectionBuilder, String)

Source:
RelationalPrimitiveCollectionBuilderExtensions.cs
Source:
RelationalPrimitiveCollectionBuilderExtensions.cs

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.

C#
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder HasJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder primitiveCollectionBuilder, string? name);

Parameters

primitiveCollectionBuilder
PrimitiveCollectionBuilder

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

Entity Framework Core 9.0 and Entity Framework Core 8.0
Product Versions
Entity Framework Core 8.0, 9.0

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

Source:
RelationalPrimitiveCollectionBuilderExtensions.cs
Source:
RelationalPrimitiveCollectionBuilderExtensions.cs

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.

C#
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<TProperty> HasJsonPropertyName<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<TProperty> primitiveCollectionBuilder, string? name);

Type Parameters

TProperty

Parameters

primitiveCollectionBuilder
PrimitiveCollectionBuilder<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

Entity Framework Core 9.0 and Entity Framework Core 8.0
Product Versions
Entity Framework Core 8.0, 9.0