AttributeToColumnAnnotationConvention<TAttribute, TAnnotation> Constructor (String, Func<PropertyInfo, IList<TAttribute>, TAnnotation>)

 

Constructs a convention that will create column annotations with the given name and using the given factory delegate.

Namespace:   System.Data.Entity.ModelConfiguration.Conventions
Assembly:  EntityFramework (in EntityFramework.dll)

[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public AttributeToColumnAnnotationConvention(
	string annotationName,
	Func<PropertyInfo, IList<TAttribute>, TAnnotation> annotationFactory
)

Parameters

annotationName
Type: System.String

The name of the annotations to create.

annotationFactory
Type: System.Func<PropertyInfo, IList<TAttribute>, TAnnotation>

A factory for creating the annotation on each column.