語言

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)
繼承

建構函式

名稱 Description
IndexAttributeConvention()

建構一個新的慣例實例。

方法

名稱 Description
Properties()

開始配置適用於模型中所有屬性的輕量級慣例。

(繼承來源 Convention)
Properties<T>()

開始配置一套輕量級慣例,適用於模型中指定類型的所有原始屬性。

(繼承來源 Convention)
Types()

開始配置一套適用於模型中所有映射型態的輕量級慣例。

(繼承來源 Convention)
Types<T>()

開始配置一套輕量級慣例,適用於模型中所有源自或實作指定型別的映射型別。

(繼承來源 Convention)

適用於