CosmosEntityTypeBuilderExtensions.ToJsonProperty Метод

Определение

Перегрузки

ToJsonProperty(OwnedNavigationBuilder, String)

Настраивает имя свойства, с которым сопоставляется сущность при хранении в виде внедренного документа.

ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean)

Настраивает имя свойства, с которым сопоставляется сущность при хранении в виде внедренного документа.

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

Настраивает имя свойства, с которым сопоставляется сущность при хранении в виде внедренного документа.

ToJsonProperty(OwnedNavigationBuilder, String)

Настраивает имя свойства, с которым сопоставляется сущность при хранении в виде внедренного документа.

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

Параметры

entityTypeBuilder
OwnedNavigationBuilder

Построитель настраиваемого типа сущности.

name
String

Имя родительского свойства.

Возвращаемое значение

Один и тот же экземпляр построителя, чтобы можно было объединить несколько вызовов в цепочку.

Комментарии

Дополнительные сведения и примеры см. в разделах Моделирование типов и связей сущностей и Доступ к Azure Cosmos DB с помощью EF Core .

Применяется к

ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean)

Настраивает имя свойства, с которым сопоставляется сущность при хранении в виде внедренного документа.

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

Параметры

entityTypeBuilder
IConventionEntityTypeBuilder

Построитель настраиваемого типа сущности.

name
String

Имя родительского свойства.

fromDataAnnotation
Boolean

Указывает, была ли конфигурация указана с помощью заметки к данным.

Возвращаемое значение

Тот же экземпляр построителя, если конфигурация была применена, в null противном случае .

Комментарии

Дополнительные сведения и примеры см. в разделах Моделирование типов и связей сущностей и Доступ к Azure Cosmos DB с помощью EF Core .

Применяется к

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

Настраивает имя свойства, с которым сопоставляется сущность при хранении в виде внедренного документа.

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)

Параметры типа

TEntity TOwnerEntity
TDependentEntity

Параметры

entityTypeBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

Построитель настраиваемого типа сущности.

name
String

Имя родительского свойства.

Возвращаемое значение

OwnedNavigationBuilder<TEntity,TDependentEntity>

Один и тот же экземпляр построителя, чтобы можно было объединить несколько вызовов в цепочку.

Комментарии

Дополнительные сведения и примеры см. в разделах Моделирование типов и связей сущностей и Доступ к Azure Cosmos DB с помощью EF Core .

Применяется к