RelationalOwnedNavigationBuilderExtensions.ToJson 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
ToJson(OwnedNavigationBuilder) |
Configures a relationship where this entity type and the entities that it owns are mapped to a JSON column in the database. |
ToJson(OwnedNavigationBuilder, String) |
Configures a relationship where this entity type and the entities that it owns are mapped to a JSON column in the database. |
ToJson<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>) |
Configures a relationship where this entity type and the entities that it owns are mapped to a JSON column in the database. |
ToJson<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String) |
Configures a relationship where this entity type and the entities that it owns are mapped to a JSON column in the database. |
ToJson(OwnedNavigationBuilder)
Configures a relationship where this entity type and the entities that it owns are mapped to a JSON column in the database.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToJson (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder builder);
static member ToJson : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToJson (builder As OwnedNavigationBuilder) As OwnedNavigationBuilder
Parameters
- builder
- OwnedNavigationBuilder
The builder for the owned navigation being configured.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
This method should only be specified for the outer-most owned entity in the given ownership structure. All entities owned by this will be automatically mapped to the same JSON column. The ownerships must still be explicitly defined. Name of the navigation will be used as the JSON column name.
Applies to
ToJson(OwnedNavigationBuilder, String)
Configures a relationship where this entity type and the entities that it owns are mapped to a JSON column in the database.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToJson (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder builder, string? jsonColumnName);
static member ToJson : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToJson (builder As OwnedNavigationBuilder, jsonColumnName As String) As OwnedNavigationBuilder
Parameters
- builder
- OwnedNavigationBuilder
The builder for the owned navigation being configured.
- jsonColumnName
- String
JSON column name to use.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
This method should only be specified for the outer-most owned entity in the given ownership structure. All entities owned by this will be automatically mapped to the same JSON column. The ownerships must still be explicitly defined.
Applies to
ToJson<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>)
Configures a relationship where this entity type and the entities that it owns are mapped to a JSON column in the database.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToJson<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> builder) where TOwnerEntity : class where TDependentEntity : class;
static member ToJson : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToJson(Of TOwnerEntity As Class, TDependentEntity As Class) (builder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)
Type Parameters
- TOwnerEntity
- TDependentEntity
Parameters
The builder for the owned navigation being configured.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
This method should only be specified for the outer-most owned entity in the given ownership structure. All entities owned by this will be automatically mapped to the same JSON column. The ownerships must still be explicitly defined. Name of the navigation will be used as the JSON column name.
Applies to
ToJson<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String)
Configures a relationship where this entity type and the entities that it owns are mapped to a JSON column in the database.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToJson<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> builder, string? jsonColumnName) where TOwnerEntity : class where TDependentEntity : class;
static member ToJson : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToJson(Of TOwnerEntity As Class, TDependentEntity As Class) (builder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), jsonColumnName As String) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)
Type Parameters
- TOwnerEntity
- TDependentEntity
Parameters
The builder for the owned navigation being configured.
- jsonColumnName
- String
JSON column name to use.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
This method should only be specified for the outer-most owned entity in the given ownership structure. All entities owned by this will be automatically mapped to the same JSON column. The ownerships must still be explicitly defined.
Applies to
Entity Framework