RelationalComplexPropertyExtensions.SetJsonPropertyName 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| SetJsonPropertyName(IMutableComplexProperty, String) |
设置用于映射到 JSON 列的实体的给定复杂属性的 JSON 属性名称的值。 |
| SetJsonPropertyName(IConventionComplexProperty, String, Boolean) |
设置用于映射到 JSON 列的实体的给定复杂属性的 JSON 属性名称的值。 |
SetJsonPropertyName(IMutableComplexProperty, String)
设置用于映射到 JSON 列的实体的给定复杂属性的 JSON 属性名称的值。
public static void SetJsonPropertyName(this Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty complexProperty, string? name);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty * string -> unit
<Extension()>
Public Sub SetJsonPropertyName (complexProperty As IMutableComplexProperty, name As String)
参数
- complexProperty
- IMutableComplexProperty
复杂属性。
- name
- String
要使用的名称。
适用于
SetJsonPropertyName(IConventionComplexProperty, String, Boolean)
设置用于映射到 JSON 列的实体的给定复杂属性的 JSON 属性名称的值。
public static string? SetJsonPropertyName(this Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty complexProperty, string? name, bool fromDataAnnotation = false);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty * string * bool -> string
<Extension()>
Public Function SetJsonPropertyName (complexProperty As IConventionComplexProperty, name As String, Optional fromDataAnnotation As Boolean = false) As String
参数
- complexProperty
- IConventionComplexProperty
复杂属性。
- name
- String
要使用的名称。
- fromDataAnnotation
- Boolean
指示是否使用数据注释指定了配置。
返回
配置的值。