IConventionAnnotatable.AddAnnotation(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.
Ajoute une annotation à cet objet. Lève si une annotation portant le nom spécifié existe déjà.
public Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation AddAnnotation (string name, object value, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation AddAnnotation (string name, object? value, bool fromDataAnnotation = false);
abstract member AddAnnotation : string * obj * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation
Public Function AddAnnotation (name As String, value As Object, Optional fromDataAnnotation As Boolean = false) As IConventionAnnotation
Paramètres
- name
- String
Nom de l’annotation à ajouter.
- 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
Annotation nouvellement ajoutée.
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