Sdílet prostřednictvím


CosmosEntityTypeBuilderExtensions.ToJsonProperty Metoda

Definice

Přetížení

ToJsonProperty(OwnedNavigationBuilder, String)

Konfiguruje název vlastnosti, na kterou je entita namapována při uložení jako vložený dokument.

ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean)

Konfiguruje název vlastnosti, na kterou je entita namapována při uložení jako vložený dokument.

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

Konfiguruje název vlastnosti, na kterou je entita namapována při uložení jako vložený dokument.

ToJsonProperty(OwnedNavigationBuilder, String)

Konfiguruje název vlastnosti, na kterou je entita namapována při uložení jako vložený dokument.

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

Parametry

entityTypeBuilder
OwnedNavigationBuilder

Tvůrce pro konfigurovaný typ entity.

name
String

Název nadřazené vlastnosti.

Návraty

Stejná instance tvůrce, aby bylo možné zřetězených více volání.

Poznámky

Další informace a příklady najdete v tématech Modelování typů entit a relací a Přístup ke službě Azure Cosmos DB pomocí EF Core .

Platí pro

ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean)

Konfiguruje název vlastnosti, na kterou je entita namapována při uložení jako vložený dokument.

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

Parametry

entityTypeBuilder
IConventionEntityTypeBuilder

Tvůrce pro konfigurovaný typ entity.

name
String

Název nadřazené vlastnosti.

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

Stejná instance tvůrce, pokud byla použita konfigurace, null jinak.

Poznámky

Další informace a příklady najdete v tématech Modelování typů entit a relací a Přístup ke službě Azure Cosmos DB pomocí EF Core .

Platí pro

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

Konfiguruje název vlastnosti, na kterou je entita namapována při uložení jako vložený dokument.

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)

Parametry typu

TEntity TOwnerEntity
TDependentEntity

Parametry

entityTypeBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

Tvůrce pro konfigurovaný typ entity.

name
String

Název nadřazené vlastnosti.

Návraty

OwnedNavigationBuilder<TEntity,TDependentEntity>

Stejná instance tvůrce, aby bylo možné zřetězených více volání.

Poznámky

Další informace a příklady najdete v tématech Modelování typů entit a relací a Přístup ke službě Azure Cosmos DB pomocí EF Core .

Platí pro