CosmosPropertyExtensions.SetJsonPropertyName Method
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.
SetJsonPropertyName(IMutableProperty, String) |
Sets the property name that the property is mapped to when targeting Cosmos. |
SetJsonPropertyName(IConventionProperty, String, Boolean) |
Sets the property name that the property is mapped to when targeting Cosmos. |
- Source:
- CosmosPropertyExtensions.cs
- Source:
- CosmosPropertyExtensions.cs
- Source:
- CosmosPropertyExtensions.cs
- Source:
- CosmosPropertyExtensions.cs
- Source:
- CosmosPropertyExtensions.cs
Sets the property name that the property is mapped to when targeting Cosmos.
public static void SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string name);
public static void SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? name);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetJsonPropertyName (property As IMutableProperty, name As String)
Parameters
- property
- IMutableProperty
The property.
- name
- String
The name to set.
Applies to
Entity Framework Core 9.0 i druge verzije
Proizvod | Verzije |
---|---|
Entity Framework Core | 5.0, 6.0, 7.0, 8.0, 9.0 |
- Source:
- CosmosPropertyExtensions.cs
- Source:
- CosmosPropertyExtensions.cs
- Source:
- CosmosPropertyExtensions.cs
- Source:
- CosmosPropertyExtensions.cs
- Source:
- CosmosPropertyExtensions.cs
Sets the property name that the property is mapped to when targeting Cosmos.
public static string SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
public static string? SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? name, bool fromDataAnnotation = false);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Function SetJsonPropertyName (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false) As String
Parameters
- property
- IConventionProperty
The property.
- name
- String
The name to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
Entity Framework Core 9.0 i druge verzije
Proizvod | Verzije |
---|---|
Entity Framework Core | 5.0, 6.0, 7.0, 8.0, 9.0 |
Povratne informacije o proizvodu Entity Framework
Entity Framework je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: