KeyAttributeConvention 类

定义

用于处理在模型中的属性上找到的 实例 KeyAttribute 的约定。

public class KeyAttributeConvention : System.Data.Entity.ModelConfiguration.Conventions.Convention
type KeyAttributeConvention = class
    inherit Convention
Public Class KeyAttributeConvention
Inherits Convention
继承
KeyAttributeConvention
继承
KeyAttributeConvention

构造函数

KeyAttributeConvention()

用于处理在模型中的属性上找到的 实例 KeyAttribute 的约定。

方法

Properties()

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

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

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

(继承自 Convention)
Types()

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

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

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

(继承自 Convention)

适用于