PropertyAttributeConfigurationConvention<TAttribute> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class for conventions that process CLR attributes found on properties of types in the model.
public abstract class PropertyAttributeConfigurationConvention<TAttribute> : System.Data.Entity.ModelConfiguration.Conventions.Convention where TAttribute : Attribute
type PropertyAttributeConfigurationConvention<'Attribute (requires 'Attribute :> Attribute)> = class
inherit Convention
Public MustInherit Class PropertyAttributeConfigurationConvention(Of TAttribute)
Inherits Convention
Type Parameters
- TAttribute
The type of the attribute to look for.
- Inheritance
- Derived
Remarks
Note that the derived convention will be applied for any non-static property on the mapped type that has the specified attribute, even if it wasn't included in the model.
Constructors
PropertyAttributeConfigurationConvention<TAttribute>() |
Initializes a new instance of the PropertyAttributeConfigurationConvention<TAttribute> class. |
Methods
Apply(PropertyInfo, ConventionTypeConfiguration, TAttribute) |
Applies this convention to a property that has an attribute of type TAttribute applied. |
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
Entity Framework