RelationalComplexCollectionBuilderExtensions.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
| 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)
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)
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.