Partager via


CosmosEntityTypeBuilderExtensions.ToJsonProperty Méthode

Définition

Surcharges

ToJsonProperty(OwnedNavigationBuilder, String)

Configure le nom de propriété auquel l’entité est mappée lorsqu’elle est stockée en tant que document incorporé.

ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean)

Configure le nom de propriété auquel l’entité est mappée lorsqu’elle est stockée en tant que document incorporé.

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

Configure le nom de propriété auquel l’entité est mappée lorsqu’elle est stockée en tant que document incorporé.

ToJsonProperty(OwnedNavigationBuilder, String)

Configure le nom de propriété auquel l’entité est mappée lorsqu’elle est stockée en tant que document incorporé.

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

Paramètres

entityTypeBuilder
OwnedNavigationBuilder

Générateur du type d’entité en cours de configuration.

name
String

Nom de la propriété parente.

Retours

Le même générateur instance afin que plusieurs appels puissent être chaînés.

Remarques

Pour plus d’informations et d’exemples, consultez Modélisation des types d’entités et des relationset Accès à Azure Cosmos DB avec EF Core .

S’applique à

ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean)

Configure le nom de propriété auquel l’entité est mappée lorsqu’elle est stockée en tant que document incorporé.

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

Paramètres

entityTypeBuilder
IConventionEntityTypeBuilder

Générateur du type d’entité en cours de configuration.

name
String

Nom de la propriété parente.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

Le même générateur instance si la configuration a été appliquée, null sinon.

Remarques

Pour plus d’informations et d’exemples, consultez Modélisation des types d’entités et des relationset Accès à Azure Cosmos DB avec EF Core .

S’applique à

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

Configure le nom de propriété auquel l’entité est mappée lorsqu’elle est stockée en tant que document incorporé.

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)

Paramètres de type

TEntity TOwnerEntity
TDependentEntity

Paramètres

entityTypeBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

Générateur du type d’entité en cours de configuration.

name
String

Nom de la propriété parente.

Retours

OwnedNavigationBuilder<TEntity,TDependentEntity>

Le même générateur instance afin que plusieurs appels puissent être chaînés.

Remarques

Pour plus d’informations et d’exemples, consultez Modélisation des types d’entités et des relationset Accès à Azure Cosmos DB avec EF Core .

S’applique à