Langue

Annotatable.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 elle est fournie.

void IMutableAnnotatable.SetOrRemoveAnnotation(string name, object value);
void IMutableAnnotatable.SetOrRemoveAnnotation(string name, object? value);
abstract member Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.SetOrRemoveAnnotation : string * obj -> unit
override this.Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.SetOrRemoveAnnotation : string * obj -> unit
Sub SetOrRemoveAnnotation (name As String, value As Object) Implements IMutableAnnotatable.SetOrRemoveAnnotation

Paramètres

name
String

Nom de l’annotation à ajouter.

value
Object

Valeur à stocker dans l’annotation.

Implémente

S’applique à