CosmosPropertyExtensions.SetPropertyName Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
SetPropertyName(IMutableProperty, String) |
Définit le nom de propriété utilisé lors du ciblage de Cosmos. |
SetPropertyName(IConventionProperty, String, Boolean) |
Définit le nom de propriété utilisé lors du ciblage de Cosmos. |
SetPropertyName(IMutableProperty, String)
Définit le nom de propriété utilisé lors du ciblage de 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)
Paramètres
- property
- IMutableProperty
Propriété.
- name
- String
Nom à définir.
S’applique à
SetPropertyName(IConventionProperty, String, Boolean)
Définit le nom de propriété utilisé lors du ciblage de 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)
Paramètres
- property
- IConventionProperty
Propriété.
- name
- String
Nom à définir.
- fromDataAnnotation
- Boolean
Indique si la configuration a été spécifiée à l’aide d’une annotation de données.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour