RelationalComplexPropertyBuilderExtensions.HasJsonPropertyName 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| HasJsonPropertyName(ComplexPropertyBuilder, String) |
將映射到 JSON 欄位的實體的複雜屬性設定,將複雜屬性映射到特定的 JSON 屬性,而非使用複雜屬性名稱。 |
| HasJsonPropertyName<TComplex>(ComplexPropertyBuilder<TComplex>, String) |
將映射到 JSON 欄位的實體的複雜屬性設定,將複雜屬性映射到特定的 JSON 屬性,而非使用複雜屬性名稱。 |
HasJsonPropertyName(ComplexPropertyBuilder, String)
將映射到 JSON 欄位的實體的複雜屬性設定,將複雜屬性映射到特定的 JSON 屬性,而非使用複雜屬性名稱。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder HasJsonPropertyName(this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder complexPropertyBuilder, string? name);
static member HasJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
<Extension()>
Public Function HasJsonPropertyName (complexPropertyBuilder As ComplexPropertyBuilder, name As String) As ComplexPropertyBuilder
參數
- complexPropertyBuilder
- ComplexPropertyBuilder
正在配置的綜合物業的建商。
- name
- String
使用 JSON 屬性名稱。
傳回
同一個建構實例,這樣可以串接多個呼叫。
適用於
HasJsonPropertyName<TComplex>(ComplexPropertyBuilder<TComplex>, String)
將映射到 JSON 欄位的實體的複雜屬性設定,將複雜屬性映射到特定的 JSON 屬性,而非使用複雜屬性名稱。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> HasJsonPropertyName<TComplex>(this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> complexPropertyBuilder, string? name);
static member HasJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex>
<Extension()>
Public Function HasJsonPropertyName(Of TComplex) (complexPropertyBuilder As ComplexPropertyBuilder(Of TComplex), name As String) As ComplexPropertyBuilder(Of TComplex)
類型參數
- TComplex
參數
- complexPropertyBuilder
- ComplexPropertyBuilder<TComplex>
正在配置的綜合物業的建商。
- name
- String
使用 JSON 屬性名稱。
傳回
同一個建構實例,這樣可以串接多個呼叫。