語言

PropertyAttributeConventionBase<TAttribute> 類別

定義

一種基於屬性套用屬性來執行設定的慣例的基底類型。

[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 同時處理複雜屬性。

更多資訊與範例請參閱 模型建構慣例 。

適用於