語言

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>

一個用來在每欄建立註解的工廠。

屬性

適用於