CosmosPropertyExtensions.SetPropertyName 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
SetPropertyName(IMutableProperty, String) |
Sets the property name used when targeting Cosmos. |
SetPropertyName(IConventionProperty, String, Boolean) |
Sets the property name used when targeting Cosmos. |
SetPropertyName(IMutableProperty, String)
Sets the property name used when targeting Cosmos.
public static void SetPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string name);
static member SetPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetPropertyName (property As IMutableProperty, name As String)
Parameters
- property
- IMutableProperty
The property.
- name
- String
The name to set.
Applies to
SetPropertyName(IConventionProperty, String, Boolean)
Sets the property name used when targeting Cosmos.
public static void SetPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
static member SetPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> unit
<Extension()>
Public Sub SetPropertyName (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false)
Parameters
- property
- IConventionProperty
The property.
- name
- String
The name to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor