语言

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)

适用于