RelationalPrimitiveCollectionBuilderExtensions.HasJsonPropertyName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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.PrimitiveCollectionBuilder HasJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder primitiveCollectionBuilder, string? name);
static member HasJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder
<Extension()>
Public Function HasJsonPropertyName (primitiveCollectionBuilder As PrimitiveCollectionBuilder, name As String) As PrimitiveCollectionBuilder
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
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.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<TProperty> HasJsonPropertyName<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<TProperty> primitiveCollectionBuilder, string? name);
static member HasJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<'Property>
<Extension()>
Public Function HasJsonPropertyName(Of TProperty) (primitiveCollectionBuilder As PrimitiveCollectionBuilder(Of TProperty), name As String) As PrimitiveCollectionBuilder(Of TProperty)
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