Freigeben über


AttributeToTableAnnotationConvention<TAttribute,TAnnotation> Konstruktor

Definition

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

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

Parameter

annotationName
String

Der Name der zu erstellenden Anmerkungen.

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

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

Attribute

Gilt für: