RelationalComplexPropertyExtensions.SetJsonPropertyName 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetJsonPropertyName(IMutableComplexProperty, String) |
設定映射到 JSON 欄位的複雜屬性名稱。 |
| SetJsonPropertyName(IConventionComplexProperty, String, Boolean) |
設定映射到 JSON 欄位的複雜屬性名稱。 |
SetJsonPropertyName(IMutableComplexProperty, String)
設定映射到 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)
設定映射到 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
表示配置是否以資料註解方式指定。
傳回
設定值。