閱讀英文版本

分享方式:


PropertyAttributeConventionBase<TAttribute> 類別

定義

根據套用至屬性的屬性來執行組態的慣例基底類型。

C#
public abstract class PropertyAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention where TAttribute : Attribute

類型參數

TAttribute

要尋找的屬性類型。

繼承
PropertyAttributeConventionBase<TAttribute>
衍生
實作

備註

衍生類別必須實 IPropertyAddedConvention 作 和 IPropertyFieldChangedConvention ,才能處理複雜的屬性。

如需詳細資訊和範例,請參閱 模型建置慣例

建構函式

屬性

Dependencies

此服務的相依性。

方法

適用於

產品 版本
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0