Afficher en anglais

Partage via


IMutableAnnotatable.SetOrRemoveAnnotation(String, Object) Méthode

Définition

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à. Supprime l’annotation existante si null est fournie.

C#
public void SetOrRemoveAnnotation (string name, object? value);

Paramètres

name
String

Nom de l’annotation à ajouter.

value
Object

Valeur à stocker dans l’annotation.

S’applique à

Produit Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0