语言

RelationalComplexPropertyBuilderExtensions.HasJsonPropertyName 方法

定义

重载

名称 说明
HasJsonPropertyName(ComplexPropertyBuilder, String)

配置映射到 JSON 列的实体的复杂属性,将复杂属性映射到特定的 JSON 属性,而不是使用复杂属性名称。

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

配置映射到 JSON 列的实体的复杂属性,将复杂属性映射到特定的 JSON 属性,而不是使用复杂属性名称。

HasJsonPropertyName(ComplexPropertyBuilder, String)

Source:
RelationalComplexPropertyBuilderExtensions.cs
Source:
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)

Source:
RelationalComplexPropertyBuilderExtensions.cs
Source:
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 属性名称。

返回

相同的生成器实例,以便可以链接多个调用。

适用于