語言

RelationalComplexPropertyExtensions.SetJsonPropertyName 方法

定義

多載

名稱 Description
SetJsonPropertyName(IMutableComplexProperty, String)

設定映射到 JSON 欄位的複雜屬性名稱。

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

設定映射到 JSON 欄位的複雜屬性名稱。

SetJsonPropertyName(IMutableComplexProperty, String)

來源:
RelationalComplexPropertyExtensions.cs
來源:
RelationalComplexPropertyExtensions.cs

設定映射到 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 欄位的複雜屬性名稱。

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

表示配置是否以資料註解方式指定。

傳回

設定值。

適用於