AttributeToTableAnnotationConvention<TAttribute,TAnnotation> 构造函数

定义

构造一个约定,该约定将创建具有给定名称和使用给定工厂委托的表批注。

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

用于在每个表上创建批注的工厂。

属性

适用于