AttributeToColumnAnnotationConvention<TAttribute, TAnnotation> Class

 

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

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

System.Object
  System.Data.Entity.ModelConfiguration.Conventions.Convention
    System.Data.Entity.ModelConfiguration.Conventions.AttributeToColumnAnnotationConvention<TAttribute, TAnnotation>
      System.Data.Entity.ModelConfiguration.Conventions.IndexAttributeConvention

public class AttributeToColumnAnnotationConvention<TAttribute, TAnnotation> : Convention
where TAttribute : Attribute

Type Parameters

TAttribute

The type of attribute to discover.

TAnnotation

The type of annotation that will be created.

NameDescription
System_CAPS_pubmethodAttributeToColumnAnnotationConvention<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.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodProperties()

Begins configuration of a lightweight convention that applies to all properties in the model.(Inherited from Convention.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTypes()

Begins configuration of a lightweight convention that applies to all mapped types in the model.(Inherited from Convention.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.