RelationalComplexPropertyExtensions.SetJsonPropertyName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SetJsonPropertyName(IMutableComplexProperty, String) |
Sets the value of JSON property name used for the given complex property of an entity mapped to a JSON column. |
| SetJsonPropertyName(IConventionComplexProperty, String, Boolean) |
Sets the value of JSON property name used for the given complex property of an entity mapped to a JSON column. |
SetJsonPropertyName(IMutableComplexProperty, String)
Sets the value of JSON property name used for the given complex property of an entity mapped to a JSON column.
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)
Parameters
- complexProperty
- IMutableComplexProperty
The complex property.
- name
- String
The name to be used.
Applies to
SetJsonPropertyName(IConventionComplexProperty, String, Boolean)
Sets the value of JSON property name used for the given complex property of an entity mapped to a JSON column.
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
Parameters
- complexProperty
- IConventionComplexProperty
The complex property.
- name
- String
The name to be used.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.