RelationalEntityTypeExtensions.SetJsonPropertyName Method

Definition

Overloads

SetJsonPropertyName(IMutableEntityType, String)

Sets the value of JSON property name used for the given entity mapped to a JSON column.

SetJsonPropertyName(IConventionEntityType, String, Boolean)

Sets the value of JSON property name used for the given entity mapped to a JSON column.

SetJsonPropertyName(IMutableEntityType, String)

Sets the value of JSON property name used for the given entity mapped to a JSON column.

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)

Parameters

entityType
IMutableEntityType

The entity type.

name
String

The name to be used.

Applies to

SetJsonPropertyName(IConventionEntityType, String, Boolean)

Sets the value of JSON property name used for the given entity mapped to a JSON column.

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

Parameters

entityType
IConventionEntityType

The entity type.

name
String

The name to be used.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to