Compartir a través de


AttributeToColumnAnnotationConvention<TAttribute,TAnnotation> Constructor

Definición

Construye una convención que creará anotaciones de columna con el nombre especificado y con el delegado de fábrica especificado.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public AttributeToColumnAnnotationConvention(string annotationName, Func<System.Reflection.PropertyInfo,System.Collections.Generic.IList<TAttribute>,TAnnotation> annotationFactory);
new System.Data.Entity.ModelConfiguration.Conventions.AttributeToColumnAnnotationConvention<'Attribute, 'Annotation (requires 'Attribute :> Attribute)> : string * Func<System.Reflection.PropertyInfo, System.Collections.Generic.IList<'Attribute>, 'Annotation> -> System.Data.Entity.ModelConfiguration.Conventions.AttributeToColumnAnnotationConvention<'Attribute, 'Annotation (requires 'Attribute :> Attribute)>
Public Sub New (annotationName As String, annotationFactory As Func(Of PropertyInfo, IList(Of TAttribute), TAnnotation))

Parámetros

annotationName
String

Nombre de las anotaciones que se van a crear.

annotationFactory
Func<PropertyInfo,IList<TAttribute>,TAnnotation>

Generador para crear la anotación en cada columna.

Atributos

Se aplica a