CosmosEntityTypeBuilderExtensions.ToJsonProperty Método

Definición

Sobrecargas

ToJsonProperty(OwnedNavigationBuilder, String)

Configura el nombre de propiedad al que se asigna la entidad cuando se almacena como un documento incrustado.

ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean)

Configura el nombre de propiedad al que se asigna la entidad cuando se almacena como un documento incrustado.

ToJsonProperty<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String)

Configura el nombre de propiedad al que se asigna la entidad cuando se almacena como un documento incrustado.

ToJsonProperty(OwnedNavigationBuilder, String)

Configura el nombre de propiedad al que se asigna la entidad cuando se almacena como un documento incrustado.

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

Parámetros

entityTypeBuilder
OwnedNavigationBuilder

Generador del tipo de entidad que se va a configurar.

name
String

Nombre de la propiedad primaria.

Devoluciones

La misma instancia del generador para que se puedan encadenar varias llamadas.

Comentarios

Consulte Modelado de tipos de entidad y relaciones, y Acceso a Azure Cosmos DB con EF Core para obtener más información y ejemplos.

Se aplica a

ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean)

Configura el nombre de propiedad al que se asigna la entidad cuando se almacena como un documento incrustado.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder ToJsonProperty (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string name, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? ToJsonProperty (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string? name, bool fromDataAnnotation = false);
static member ToJsonProperty : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
<Extension()>
Public Function ToJsonProperty (entityTypeBuilder As IConventionEntityTypeBuilder, name As String, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

Parámetros

entityTypeBuilder
IConventionEntityTypeBuilder

Generador del tipo de entidad que se va a configurar.

name
String

Nombre de la propiedad primaria.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Devoluciones

La misma instancia del generador si se aplicó la configuración; de lo contrario, null .

Comentarios

Consulte Modelado de tipos de entidad y relaciones, y Acceso a Azure Cosmos DB con EF Core para obtener más información y ejemplos.

Se aplica a

ToJsonProperty<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String)

Configura el nombre de propiedad al que se asigna la entidad cuando se almacena como un documento incrustado.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TDependentEntity> ToJsonProperty<TEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TDependentEntity> entityTypeBuilder, string name) where TEntity : class where TDependentEntity : class;
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToJsonProperty<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> entityTypeBuilder, string? name) where TOwnerEntity : class where TDependentEntity : class;
static member ToJsonProperty : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> (requires 'Entity : null and 'DependentEntity : null)
static member ToJsonProperty : 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 ToJsonProperty(Of TEntity As Class, TDependentEntity As Class) (entityTypeBuilder As OwnedNavigationBuilder(Of TEntity, TDependentEntity), name As String) As OwnedNavigationBuilder(Of TEntity, TDependentEntity)
<Extension()>
Public Function ToJsonProperty(Of TOwnerEntity As Class, TDependentEntity As Class) (entityTypeBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

Parámetros de tipo

TEntity TOwnerEntity
TDependentEntity

Parámetros

entityTypeBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

Generador del tipo de entidad que se va a configurar.

name
String

Nombre de la propiedad primaria.

Devoluciones

OwnedNavigationBuilder<TEntity,TDependentEntity>

La misma instancia del generador para que se puedan encadenar varias llamadas.

Comentarios

Consulte Modelado de tipos de entidad y relaciones, y Acceso a Azure Cosmos DB con EF Core para obtener más información y ejemplos.

Se aplica a