Share via


RelationalComplexCollectionBuilderExtensions.ToJson Method

Definition

Overloads

Name Description
ToJson(ComplexCollectionBuilder, String)

Configures the complex collection to be stored as a JSON column.

ToJson<TComplex>(ComplexCollectionBuilder<TComplex>, String)

Configures the complex collection to be stored as a JSON column.

ToJson(ComplexCollectionBuilder, String)

Source:
RelationalComplexCollectionBuilderExtensions.cs

Configures the complex collection to be stored as a JSON column.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder ToJson(this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder complexCollectionBuilder, string? jsonColumnName = default);
static member ToJson : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
<Extension()>
Public Function ToJson (complexCollectionBuilder As ComplexCollectionBuilder, Optional jsonColumnName As String = Nothing) As ComplexCollectionBuilder

Parameters

complexCollectionBuilder
ComplexCollectionBuilder

The builder for the complex collection being configured.

jsonColumnName
String

The name of the JSON column. If not specified, the complex collection name is used.

Returns

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

Applies to

ToJson<TComplex>(ComplexCollectionBuilder<TComplex>, String)

Source:
RelationalComplexCollectionBuilderExtensions.cs

Configures the complex collection to be stored as a JSON column.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<TComplex> ToJson<TComplex>(this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<TComplex> complexCollectionBuilder, string? jsonColumnName = default);
static member ToJson : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Complex> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Complex>
<Extension()>
Public Function ToJson(Of TComplex) (complexCollectionBuilder As ComplexCollectionBuilder(Of TComplex), Optional jsonColumnName As String = Nothing) As ComplexCollectionBuilder(Of TComplex)

Type Parameters

TComplex

Parameters

complexCollectionBuilder
ComplexCollectionBuilder<TComplex>

The builder for the complex collection being configured.

jsonColumnName
String

The name of the JSON column. If not specified, the complex collection name is used.

Returns

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

Applies to