Share via


Annotatable.AddAnnotation Méthode

Définition

Surcharges

AddAnnotation(String, Annotation)

Ajoute une annotation à cet objet. Lève si une annotation portant le nom spécifié existe déjà.

AddAnnotation(String, Object)

Ajoute une annotation à cet objet. Lève si une annotation portant le nom spécifié existe déjà.

AddAnnotation(String, Annotation)

Ajoute une annotation à cet objet. Lève si une annotation portant le nom spécifié existe déjà.

protected virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation AddAnnotation (string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation annotation);
abstract member AddAnnotation : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.AddAnnotation : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Protected Overridable Function AddAnnotation (name As String, annotation As Annotation) As Annotation

Paramètres

name
String

Clé de l’annotation à ajouter.

annotation
Annotation

Annotation à ajouter.

Retours

Annotation ajoutée.

S’applique à

AddAnnotation(String, Object)

Ajoute une annotation à cet objet. Lève si une annotation portant le nom spécifié existe déjà.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation AddAnnotation (string name, object value);
abstract member AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Public Overridable Function AddAnnotation (name As String, value As Object) As Annotation

Paramètres

name
String

Clé de l’annotation à ajouter.

value
Object

Valeur à stocker dans l’annotation.

Retours

Annotation nouvellement ajoutée.

Implémente

S’applique à