MutableAnnotatableExtensions.GetAnnotation Méthode

Définition

Obtient l’annotation portant le nom donné, en lisant si elle n’existe pas.

C#
public static Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation GetAnnotation (this Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable annotatable, string annotationName);

Paramètres

annotatable
IMutableAnnotatable

Objet sur lequel rechercher l’annotation.

annotationName
String

Clé de l’annotation à rechercher.

Retours

Annotation portant le nom spécifié.

S’applique à

Produit Versions
Entity Framework Core 3.0, 3.1, 5.0