IConventionAnnotatable.SetAnnotation(String, Object, Boolean) 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.
Définit l’annotation stockée sous le nom donné. Remplace l’annotation existante si une annotation portant le nom spécifié existe déjà.
public void SetAnnotation (string name, object value, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation SetAnnotation (string name, object value, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? SetAnnotation (string name, object? value, bool fromDataAnnotation = false);
abstract member SetAnnotation : string * obj * bool -> unit
abstract member SetAnnotation : string * obj * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation
Public Sub SetAnnotation (name As String, value As Object, Optional fromDataAnnotation As Boolean = false)
Public Function SetAnnotation (name As String, value As Object, Optional fromDataAnnotation As Boolean = false) As IConventionAnnotation
Paramètres
- name
- String
Nom de l’annotation à définir.
- value
- Object
Valeur à stocker dans l’annotation.
- fromDataAnnotation
- Boolean
Indique si la configuration a été spécifiée à l’aide d’une annotation de données.
Retours
Nouvelle annotation.
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