IndexAttributeConvention 类

定义

用于发现 IndexAttribute 属性的属性并在模型中生成 IndexAnnotation 列批注的约定。

public class IndexAttributeConvention : System.Data.Entity.ModelConfiguration.Conventions.AttributeToColumnAnnotationConvention<System.ComponentModel.DataAnnotations.Schema.IndexAttribute,System.Data.Entity.Infrastructure.Annotations.IndexAnnotation>
type IndexAttributeConvention = class
    inherit AttributeToColumnAnnotationConvention<IndexAttribute, IndexAnnotation>
Public Class IndexAttributeConvention
Inherits AttributeToColumnAnnotationConvention(Of IndexAttribute, IndexAnnotation)
继承

构造函数

IndexAttributeConvention()

构造约定的新实例。

方法

Properties()

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

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

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

(继承自 Convention)
Types()

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

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

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

(继承自 Convention)

适用于