共用方式為


AttributeToColumnAnnotationConvention<TAttribute,TAnnotation> 建構函式

定義

建構慣例,這個慣例會建立具有指定名稱的資料行批註,以及使用指定的處理站委派。

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

參數

annotationName
String

要建立的批註名稱。

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

用於在每個資料行上建立批註的處理站。

屬性

適用於