Sdílet prostřednictvím


AttributeToColumnAnnotationConvention<TAttribute,TAnnotation> Konstruktor

Definice

Vytvoří konvenci, která vytvoří poznámky sloupců s daným názvem a pomocí daného delegáta továrny.

[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))

Parametry

annotationName
String

Název poznámek, které se mají vytvořit.

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

Objekt pro vytváření poznámek pro každý sloupec.

Atributy

Platí pro