TypeAttributeConfigurationConvention<TAttribute> 类

定义

处理在模型中找到的 CLR 属性的约定的基类。

[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

类型参数

TAttribute

要查找的属性的类型。

继承
TypeAttributeConfigurationConvention<TAttribute>
派生
属性

构造函数

TypeAttributeConfigurationConvention<TAttribute>()

初始化 TypeAttributeConfigurationConvention<TAttribute> 类的新实例。

方法

Apply(ConventionTypeConfiguration, TAttribute)

将此约定应用于应用了 TAttribute 类型的属性的类。

Properties()

开始配置适用于模型中的所有属性的轻型约定。

(继承自 Convention)
Properties<T>()

开始配置适用于模型中指定类型的所有基元属性的轻型约定。

(继承自 Convention)
Types()

开始配置适用于模型中所有映射类型的轻型约定。

(继承自 Convention)
Types<T>()

开始配置轻量级约定,该约定适用于派生自指定类型或实现指定类型的模型中的所有映射类型。

(继承自 Convention)

适用于