Compartir a través de


AttributeToTableAnnotationConvention<TAttribute,TAnnotation> Constructor

Definición

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

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

Parámetros

annotationName
String

Nombre de las anotaciones que se van a crear.

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

Un generador para crear la anotación en cada tabla.

Atributos

Se aplica a