语言

RelationalComplexPropertyExtensions.SetJsonPropertyName 方法

定义

重载

名称 说明
SetJsonPropertyName(IMutableComplexProperty, String)

设置用于映射到 JSON 列的实体的给定复杂属性的 JSON 属性名称的值。

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

设置用于映射到 JSON 列的实体的给定复杂属性的 JSON 属性名称的值。

SetJsonPropertyName(IMutableComplexProperty, String)

Source:
RelationalComplexPropertyExtensions.cs
Source:
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)

Source:
RelationalComplexPropertyExtensions.cs
Source:
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

指示是否使用数据注释指定了配置。

返回

配置的值。

适用于