PropertyAttributeConfigurationConvention<TAttribute> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
处理在模型中类型属性上找到的 CLR 属性的约定的基类。
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
类型参数
- TAttribute
要查找的属性的类型。
- 继承
- 派生
注解
请注意,派生约定将应用于具有指定属性的映射类型上的任何非静态属性,即使它未包含在模型中。
构造函数
PropertyAttributeConfigurationConvention<TAttribute>() |
初始化 PropertyAttributeConfigurationConvention<TAttribute> 类的新实例。 |
方法
Apply(PropertyInfo, ConventionTypeConfiguration, TAttribute) |
将此约定应用于应用了 TAttribute 类型的属性的属性。 |
Properties() |
开始配置应用于模型中的所有属性的轻型约定。 (继承自 Convention) |
Properties<T>() |
开始配置应用于模型中指定类型的所有基元属性的轻型约定。 (继承自 Convention) |
Types() |
开始配置适用于模型中所有映射类型的轻型约定。 (继承自 Convention) |
Types<T>() |
开始配置轻型约定,该约定适用于从指定类型派生或实现指定类型的所有映射类型。 (继承自 Convention) |