CosmosEntityTypeBuilderExtensions.ToJsonProperty Metodo

Definizione

Overload

ToJsonProperty(OwnedNavigationBuilder, String)

Configura il nome della proprietà a cui viene eseguito il mapping dell'entità quando viene archiviato come documento incorporato.

ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean)

Configura il nome della proprietà a cui viene eseguito il mapping dell'entità quando viene archiviato come documento incorporato.

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

Configura il nome della proprietà a cui viene eseguito il mapping dell'entità quando viene archiviato come documento incorporato.

ToJsonProperty(OwnedNavigationBuilder, String)

Configura il nome della proprietà a cui viene eseguito il mapping dell'entità quando viene archiviato come documento incorporato.

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

Parametri

entityTypeBuilder
OwnedNavigationBuilder

Generatore per il tipo di entità da configurare.

name
String

Nome della proprietà padre.

Restituisce

Stessa istanza del generatore in modo che più chiamate possano essere concatenati.

Commenti

Per altre informazioni ed esempi, vedere Modellazione di tipi e relazioni di entità e Accesso ad Azure Cosmos DB con EF Core .

Si applica a

ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean)

Configura il nome della proprietà a cui viene eseguito il mapping dell'entità quando viene archiviato come documento incorporato.

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

Parametri

entityTypeBuilder
IConventionEntityTypeBuilder

Generatore per il tipo di entità da configurare.

name
String

Nome della proprietà padre.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Stessa istanza del generatore se la configurazione è stata applicata; in caso contrario, null .

Commenti

Per altre informazioni ed esempi, vedere Modellazione di tipi e relazioni di entità e Accesso ad Azure Cosmos DB con EF Core .

Si applica a

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

Configura il nome della proprietà a cui viene eseguito il mapping dell'entità quando viene archiviato come documento incorporato.

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)

Parametri di tipo

TEntity TOwnerEntity
TDependentEntity

Parametri

entityTypeBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

Generatore per il tipo di entità da configurare.

name
String

Nome della proprietà padre.

Restituisce

OwnedNavigationBuilder<TEntity,TDependentEntity>

Stessa istanza del generatore in modo che più chiamate possano essere concatenati.

Commenti

Per altre informazioni ed esempi, vedere Modellazione di tipi e relazioni di entità e Accesso ad Azure Cosmos DB con EF Core .

Si applica a