PropertyAttributeConventionBase<TAttribute> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一種基於屬性套用屬性來執行設定的慣例的基底類型。
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class PropertyAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention where TAttribute : Attribute
public abstract class PropertyAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention where TAttribute : Attribute
[<System.Runtime.CompilerServices.Nullable(0)>]
type PropertyAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
interface IPropertyAddedConvention
interface IConvention
interface IPropertyFieldChangedConvention
type PropertyAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
interface IPropertyAddedConvention
interface IConvention
interface IPropertyFieldChangedConvention
Public MustInherit Class PropertyAttributeConventionBase(Of TAttribute)
Implements IPropertyAddedConvention, IPropertyFieldChangedConvention
類型參數
- TAttribute
該找什麼屬性類型。
- 繼承
-
PropertyAttributeConventionBase<TAttribute>
- 衍生
- 屬性
- 實作
備註
推導類別必須實作 IPropertyAddedConvention 和 IPropertyFieldChangedConvention 同時處理複雜屬性。
更多資訊與範例請參閱 模型建構慣例 。
建構函式
| 名稱 | Description |
|---|---|
| PropertyAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies) |
屬性
| 名稱 | Description |
|---|---|
| Dependencies |
此服務的依賴關係。 |