CosmosEntityTypeBuilderExtensions.ToJsonProperty Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
ToJsonProperty(OwnedNavigationBuilder, String) |
Konfiguruje nazwę właściwości, na którą jest mapowana jednostka, gdy jest przechowywana jako osadzony dokument. |
ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean) |
Konfiguruje nazwę właściwości, na którą jest mapowana jednostka, gdy jest przechowywana jako osadzony dokument. |
ToJsonProperty<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String) |
Konfiguruje nazwę właściwości, na którą jest mapowana jednostka, gdy jest przechowywana jako osadzony dokument. |
ToJsonProperty(OwnedNavigationBuilder, String)
Konfiguruje nazwę właściwości, na którą jest mapowana jednostka, gdy jest przechowywana jako osadzony 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
Konstruktor dla konfigurowanego typu jednostki.
- name
- String
Nazwa właściwości nadrzędnej.
Zwraca
To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.
Uwagi
Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji oraz Uzyskiwanie dostępu do usługi Azure Cosmos DB za pomocą programu EF Core .
Dotyczy
ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean)
Konfiguruje nazwę właściwości, na którą jest mapowana jednostka, gdy jest przechowywana jako osadzony 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
Konstruktor dla konfigurowanego typu jednostki.
- name
- String
Nazwa właściwości nadrzędnej.
- fromDataAnnotation
- Boolean
Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.
Zwraca
To samo wystąpienie konstruktora, jeśli konfiguracja została zastosowana, null
w przeciwnym razie.
Uwagi
Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji oraz Uzyskiwanie dostępu do usługi Azure Cosmos DB za pomocą programu EF Core .
Dotyczy
ToJsonProperty<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String)
Konfiguruje nazwę właściwości, na którą jest mapowana jednostka, gdy jest przechowywana jako osadzony 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>
Konstruktor dla konfigurowanego typu jednostki.
- name
- String
Nazwa właściwości nadrzędnej.
Zwraca
To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.
Uwagi
Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji oraz Uzyskiwanie dostępu do usługi Azure Cosmos DB za pomocą programu EF Core .