TypeAttributeConfigurationConvention<TAttribute> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
基底類別用於處理模型中 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
要找屬性的類型。
- 繼承
- 衍生
- 屬性
建構函式
| 名稱 | Description |
|---|---|
| TypeAttributeConfigurationConvention<TAttribute>() |
初始化 TypeAttributeConfigurationConvention<TAttribute> 類別的新執行個體。 |
方法
| 名稱 | Description |
|---|---|
| Apply(ConventionTypeConfiguration, TAttribute) |
將此慣例應用於屬性為 TAttribute 的類別。 |
| Properties() |
開始配置適用於模型中所有屬性的輕量級慣例。 (繼承來源 Convention) |
| Properties<T>() |
開始配置一套輕量級慣例,適用於模型中指定類型的所有原始屬性。 (繼承來源 Convention) |
| Types() |
開始配置一套適用於模型中所有映射型態的輕量級慣例。 (繼承來源 Convention) |
| Types<T>() |
開始配置一套輕量級慣例,適用於模型中所有源自或實作指定型別的映射型別。 (繼承來源 Convention) |