RelationalEntityTypeExtensions.SetJsonPropertyName 方法

定义

重载

SetJsonPropertyName(IMutableEntityType, String)

设置用于映射到 JSON 列的给定实体的 JSON 属性值。

SetJsonPropertyName(IConventionEntityType, String, Boolean)

设置用于映射到 JSON 列的给定实体的 JSON 属性值。

SetJsonPropertyName(IMutableEntityType, String)

设置用于映射到 JSON 列的给定实体的 JSON 属性值。

public static void SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? name);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetJsonPropertyName (entityType As IMutableEntityType, name As String)

参数

entityType
IMutableEntityType

实体类型。

name
String

要使用的名称。

适用于

SetJsonPropertyName(IConventionEntityType, String, Boolean)

设置用于映射到 JSON 列的给定实体的 JSON 属性值。

public static string? SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Function SetJsonPropertyName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false) As String

参数

entityType
IConventionEntityType

实体类型。

name
String

要使用的名称。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

配置的值。

适用于