共用方式為


TypeAttributeConfigurationConvention<TAttribute> 類別

定義

處理模型中所找到 CLR 屬性之慣例的基類。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1005:AvoidExcessiveParametersOnGenericTypes")]
public abstract class TypeAttributeConfigurationConvention<TAttribute> : System.Data.Entity.ModelConfiguration.Conventions.Convention where TAttribute : Attribute
type TypeAttributeConfigurationConvention<'Attribute (requires 'Attribute :> Attribute)> = class
    inherit Convention
Public MustInherit Class TypeAttributeConfigurationConvention(Of TAttribute)
Inherits Convention

類型參數

TAttribute

要尋找的屬性型別。

繼承
TypeAttributeConfigurationConvention<TAttribute>
衍生
屬性

建構函式

TypeAttributeConfigurationConvention<TAttribute>()

初始化 TypeAttributeConfigurationConvention<TAttribute> 類別的新執行個體。

方法

Apply(ConventionTypeConfiguration, TAttribute)

將此慣例套用至已套用 TAttribute 類型的屬性的類別。

Properties()

開始設定適用于模型中所有屬性的輕量型慣例。

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

開始設定輕量型慣例,此慣例會套用至模型中指定類型的所有基本屬性。

(繼承來源 Convention)
Types()

開始設定適用于模型中所有對應類型的輕量型慣例。

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

開始設定輕量型慣例,此慣例會套用至衍生自或實作指定型別之模型中的所有對應型別。

(繼承來源 Convention)

適用於