Share via


AttributeToColumnAnnotationConvention<TAttribute,TAnnotation> Class

Definition

A general purpose class for Code First conventions that read attributes from .NET properties and generate column annotations based on those attributes.

public class AttributeToColumnAnnotationConvention<TAttribute,TAnnotation> : System.Data.Entity.ModelConfiguration.Conventions.Convention where TAttribute : Attribute
type AttributeToColumnAnnotationConvention<'Attribute, 'Annotation (requires 'Attribute :> Attribute)> = class
    inherit Convention
Public Class AttributeToColumnAnnotationConvention(Of TAttribute, TAnnotation)
Inherits Convention

Type Parameters

TAttribute

The type of attribute to discover.

TAnnotation

The type of annotation that will be created.

Inheritance
AttributeToColumnAnnotationConvention<TAttribute,TAnnotation>
Derived

Constructors

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

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

Methods

Properties()

Begins configuration of a lightweight convention that applies to all properties in the model.

(Inherited from Convention)
Properties<T>()

Begins configuration of a lightweight convention that applies to all primitive properties of the specified type in the model.

(Inherited from Convention)
Types()

Begins configuration of a lightweight convention that applies to all mapped types in the model.

(Inherited from Convention)
Types<T>()

Begins configuration of a lightweight convention that applies to all mapped types in the model that derive from or implement the specified type.

(Inherited from Convention)

Applies to