RelationalComplexTypePropertyBuilderExtensions.HasJsonPropertyName 方法

定義

多載

HasJsonPropertyName(ComplexTypePropertyBuilder, String)

設定對應至 JSON 資料行的實體屬性、將實體屬性對應至特定 JSON 屬性,而不是使用實體屬性名稱。

HasJsonPropertyName<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)

設定對應至 JSON 資料行的實體屬性、將實體屬性對應至特定 JSON 屬性,而不是使用實體屬性名稱。

HasJsonPropertyName(ComplexTypePropertyBuilder, String)

設定對應至 JSON 資料行的實體屬性、將實體屬性對應至特定 JSON 屬性,而不是使用實體屬性名稱。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder HasJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder propertyBuilder, string? name);
static member HasJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder
<Extension()>
Public Function HasJsonPropertyName (propertyBuilder As ComplexTypePropertyBuilder, name As String) As ComplexTypePropertyBuilder

參數

propertyBuilder
ComplexTypePropertyBuilder

要設定之屬性的產生器。

name
String

要使用的 JSON 屬性名稱。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於

HasJsonPropertyName<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)

設定對應至 JSON 資料行的實體屬性、將實體屬性對應至特定 JSON 屬性,而不是使用實體屬性名稱。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> HasJsonPropertyName<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> propertyBuilder, string? name);
static member HasJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property>
<Extension()>
Public Function HasJsonPropertyName(Of TProperty) (propertyBuilder As ComplexTypePropertyBuilder(Of TProperty), name As String) As ComplexTypePropertyBuilder(Of TProperty)

類型參數

TProperty

參數

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

要設定之屬性的產生器。

name
String

要使用的 JSON 屬性名稱。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於