Lenguaje

CosmosComplexCollectionBuilderExtensions.ToJsonProperty Method

Definition

Overloads

Name Description
ToJsonProperty(ComplexCollectionBuilder, String)

Configures the property name that the complex collection is mapped to when stored as an embedded document.

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

Configures the property name that the complex collection is mapped to when stored as an embedded document.

ToJsonProperty(ComplexCollectionBuilder, String)

Source:
CosmosComplexCollectionBuilderExtensions.cs

Configures the property name that the complex collection is mapped to when stored as an embedded document.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder ToJsonProperty(this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder complexPropertyBuilder, string? name);
static member ToJsonProperty : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
<Extension()>
Public Function ToJsonProperty (complexPropertyBuilder As ComplexCollectionBuilder, name As String) As ComplexCollectionBuilder

Parameters

complexPropertyBuilder
ComplexCollectionBuilder

The builder for the complex type being configured.

name
String

The name of the parent property.

Returns

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

Remarks

See Complex types, and Accessing Azure Cosmos DB with EF Core for more information and examples.

Applies to

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

Source:
CosmosComplexCollectionBuilderExtensions.cs

Configures the property name that the complex collection is mapped to when stored as an embedded document.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<TComplex> ToJsonProperty<TComplex>(this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<TComplex> complexPropertyBuilder, string? name);
static member ToJsonProperty : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Complex> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Complex>
<Extension()>
Public Function ToJsonProperty(Of TComplex) (complexPropertyBuilder As ComplexCollectionBuilder(Of TComplex), name As String) As ComplexCollectionBuilder(Of TComplex)

Type Parameters

TComplex

Parameters

complexPropertyBuilder
ComplexCollectionBuilder<TComplex>

The builder for the complex type being configured.

name
String

The name of the parent property.

Returns

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

Remarks

See Complex types, and Accessing Azure Cosmos DB with EF Core for more information and examples.

Applies to