AttributeToTableAnnotationConvention<TAttribute, TAnnotation> Constructor (String, Func<Type, IList<TAttribute>, TAnnotation>)

 

Constructs a convention that will create table 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 AttributeToTableAnnotationConvention(
	string annotationName,
	Func<Type, IList<TAttribute>, TAnnotation> annotationFactory
)

Parameters

annotationName
Type: System.String

The name of the annotations to create.

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

A factory for creating the annotation on each table.