Язык

RelationalComplexPropertyExtensions.SetJsonPropertyName Метод

Определение

Перегрузки

Имя. Описание
SetJsonPropertyName(IMutableComplexProperty, String)

Задает значение имени свойства JSON, используемого для заданного сложного свойства сущности, сопоставленной со столбцом JSON.

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

Задает значение имени свойства JSON, используемого для заданного сложного свойства сущности, сопоставленной со столбцом JSON.

SetJsonPropertyName(IMutableComplexProperty, String)

Исходный код:
RelationalComplexPropertyExtensions.cs
Исходный код:
RelationalComplexPropertyExtensions.cs

Задает значение имени свойства JSON, используемого для заданного сложного свойства сущности, сопоставленной со столбцом JSON.

public static void SetJsonPropertyName(this Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty complexProperty, string? name);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty * string -> unit
<Extension()>
Public Sub SetJsonPropertyName (complexProperty As IMutableComplexProperty, name As String)

Параметры

complexProperty
IMutableComplexProperty

Сложное свойство.

name
String

Используемое имя.

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

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

Исходный код:
RelationalComplexPropertyExtensions.cs
Исходный код:
RelationalComplexPropertyExtensions.cs

Задает значение имени свойства JSON, используемого для заданного сложного свойства сущности, сопоставленной со столбцом JSON.

public static string? SetJsonPropertyName(this Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty complexProperty, string? name, bool fromDataAnnotation = false);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty * string * bool -> string
<Extension()>
Public Function SetJsonPropertyName (complexProperty As IConventionComplexProperty, name As String, Optional fromDataAnnotation As Boolean = false) As String

Параметры

complexProperty
IConventionComplexProperty

Сложное свойство.

name
String

Используемое имя.

fromDataAnnotation
Boolean

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

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

Настроенное значение.

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