ConventionAnnotatableExtensions.AddAnnotations Methode

Definition

Fügt einem Objekt Anmerkungen hinzu.

C#
public static void AddAnnotations (this Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable annotatable, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> annotations, bool fromDataAnnotation = false);

Parameter

annotatable
IConventionAnnotatable

Das Objekt, dem die Anmerkungen hinzugefügt werden sollen.

annotations
IEnumerable<IConventionAnnotation>

Die anmerkungen, die hinzugefügt werden sollen.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gilt für:

Produkt Versionen
Entity Framework Core 3.0, 3.1, 5.0