共用方式為


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)

適用於