Lenguaje

CosmosComplexPropertyBuilderExtensions.ToJsonProperty Method

Definition

Overloads

Name Description
ToJsonProperty(ComplexPropertyBuilder, String)

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

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

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

ToJsonProperty(ComplexPropertyBuilder, String)

Source:
CosmosComplexPropertyBuilderExtensions.cs

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

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

Parameters

complexPropertyBuilder
ComplexPropertyBuilder

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>(ComplexPropertyBuilder<TComplex>, String)

Source:
CosmosComplexPropertyBuilderExtensions.cs

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

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

Type Parameters

TComplex

Parameters

complexPropertyBuilder
ComplexPropertyBuilder<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