CosmosPropertyExtensions.SetJsonPropertyName Method

Definition

Overloads

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.

SetJsonPropertyName(IMutableProperty, String)

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.

C#
public static void SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string name);
C#
public static void SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? name);

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

SetJsonPropertyName(IConventionProperty, String, Boolean)

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.

C#
public static string SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
C#
public static string? SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? name, bool fromDataAnnotation = false);

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