語言

RelationalComplexPropertyBuilderExtensions.HasJsonPropertyName 方法

定義

多載

名稱 Description
HasJsonPropertyName(ComplexPropertyBuilder, String)

將映射到 JSON 欄位的實體的複雜屬性設定,將複雜屬性映射到特定的 JSON 屬性,而非使用複雜屬性名稱。

HasJsonPropertyName<TComplex>(ComplexPropertyBuilder<TComplex>, String)

將映射到 JSON 欄位的實體的複雜屬性設定,將複雜屬性映射到特定的 JSON 屬性,而非使用複雜屬性名稱。

HasJsonPropertyName(ComplexPropertyBuilder, String)

來源:
RelationalComplexPropertyBuilderExtensions.cs
來源:
RelationalComplexPropertyBuilderExtensions.cs

將映射到 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)

來源:
RelationalComplexPropertyBuilderExtensions.cs
來源:
RelationalComplexPropertyBuilderExtensions.cs

將映射到 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 屬性名稱。

傳回

同一個建構實例,這樣可以串接多個呼叫。

適用於