共用方式為


AttributeToTableAnnotationConvention<TAttribute,TAnnotation> 建構函式

定義

建構慣例,此慣例會建立具有指定名稱的資料表批註,以及使用指定的 Factory 委派。

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

參數

annotationName
String

要建立的批註名稱。

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

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

屬性

適用於