RelationalComplexPropertyBuilderExtensions.ToJson 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| ToJson(ComplexPropertyBuilder, String) |
配置要存储为 JSON 列的复杂属性。 |
| ToJson<TComplex>(ComplexPropertyBuilder<TComplex>, String) |
配置要存储为 JSON 列的复杂属性。 |
ToJson(ComplexPropertyBuilder, String)
配置要存储为 JSON 列的复杂属性。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder ToJson(this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder complexPropertyBuilder, string? jsonColumnName = default);
static member ToJson : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
<Extension()>
Public Function ToJson (complexPropertyBuilder As ComplexPropertyBuilder, Optional jsonColumnName As String = Nothing) As ComplexPropertyBuilder
参数
- complexPropertyBuilder
- ComplexPropertyBuilder
要配置的复杂属性的生成器。
- jsonColumnName
- String
JSON 列的名称。 如果未指定,则使用复杂属性名称。
返回
相同的生成器实例,以便可以链接多个调用。
适用于
ToJson<TComplex>(ComplexPropertyBuilder<TComplex>, String)
配置要存储为 JSON 列的复杂属性。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> ToJson<TComplex>(this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> complexPropertyBuilder, string? jsonColumnName = default) where TComplex : class;
static member ToJson : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex (requires 'Complex : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex (requires 'Complex : null)> (requires 'Complex : null)
<Extension()>
Public Function ToJson(Of TComplex As Class) (complexPropertyBuilder As ComplexPropertyBuilder(Of TComplex), Optional jsonColumnName As String = Nothing) As ComplexPropertyBuilder(Of TComplex)
类型参数
- TComplex
参数
- complexPropertyBuilder
- ComplexPropertyBuilder<TComplex>
要配置的复杂属性的生成器。
- jsonColumnName
- String
JSON 列的名称。 如果未指定,则使用复杂属性名称。
返回
相同的生成器实例,以便可以链接多个调用。