TypeAttributeConfigurationConvention<TAttribute> TypeAttributeConfigurationConvention<TAttribute> TypeAttributeConfigurationConvention<TAttribute> Class

Definition

Base class for conventions that process CLR attributes found in the model.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1005:AvoidExcessiveParametersOnGenericTypes")]
public abstract class TypeAttributeConfigurationConvention<TAttribute> : System.Data.Entity.ModelConfiguration.Conventions.Convention where TAttribute : Attribute
type TypeAttributeConfigurationConvention<'Attribute (requires 'Attribute :> Attribute)> = class
    inherit Convention
Public MustInherit Class TypeAttributeConfigurationConvention(Of TAttribute)
Inherits Convention

Type Parameters

TAttribute

The type of the attribute to look for.

Inheritance
TypeAttributeConfigurationConvention<TAttribute>TypeAttributeConfigurationConvention<TAttribute>TypeAttributeConfigurationConvention<TAttribute>
Attributes

Constructors

TypeAttributeConfigurationConvention<TAttribute>() TypeAttributeConfigurationConvention<TAttribute>() TypeAttributeConfigurationConvention<TAttribute>()

Initializes a new instance of the TypeAttributeConfigurationConvention<TAttribute> class.

Methods

Apply(ConventionTypeConfiguration, TAttribute) Apply(ConventionTypeConfiguration, TAttribute) Apply(ConventionTypeConfiguration, TAttribute)

Applies this convention to a class that has an attribute of type TAttribute applied.

Properties() Properties() Properties()

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

(Inherited from Convention)
Properties<T>() Properties<T>() 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() Types() Types()

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

(Inherited from Convention)
Types<T>() Types<T>() 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