Compartir a través de


ConventionAnnotatableExtensions.AddAnnotations Método

Definición

Agrega anotaciones a un objeto .

public static void AddAnnotations (this Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable annotatable, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> annotations, bool fromDataAnnotation = false);
static member AddAnnotations : Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable * seq<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> * bool -> unit
<Extension()>
Public Sub AddAnnotations (annotatable As IConventionAnnotatable, annotations As IEnumerable(Of IConventionAnnotation), Optional fromDataAnnotation As Boolean = false)

Parámetros

annotatable
IConventionAnnotatable

Objeto al que se van a agregar las anotaciones.

annotations
IEnumerable<IConventionAnnotation>

Anotaciones que se van a agregar.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Se aplica a