Freigeben über


AttributeToColumnAnnotationConvention<TAttribute,TAnnotation> Konstruktor

Definition

Erstellt eine Konvention, die Spaltenanmerkungen mit dem angegebenen Namen und unter Verwendung des angegebenen Factorydelegats erstellt.

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

Parameter

annotationName
String

Der Name der zu erstellenden Anmerkungen.

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

Eine Factory zum Erstellen der Anmerkung für jede Spalte.

Attribute

Gilt für: