BackingFieldAttributeConvention 類別

定義

將屬性設定為根據 BackingFieldAttribute 屬性的備份欄位的慣例。

public class BackingFieldAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.BackingFieldAttribute>
public class BackingFieldAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.BackingFieldAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyFieldChangedConvention
type BackingFieldAttributeConvention = class
    inherit PropertyAttributeConventionBase<BackingFieldAttribute>
type BackingFieldAttributeConvention = class
    inherit PropertyAttributeConventionBase<BackingFieldAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
    interface IComplexPropertyFieldChangedConvention
Public Class BackingFieldAttributeConvention
Inherits PropertyAttributeConventionBase(Of BackingFieldAttribute)
Public Class BackingFieldAttributeConvention
Inherits PropertyAttributeConventionBase(Of BackingFieldAttribute)
Implements IComplexPropertyAddedConvention, IComplexPropertyFieldChangedConvention
繼承
實作

備註

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

建構函式

BackingFieldAttributeConvention(ProviderConventionSetBuilderDependencies)

建立 BackingFieldAttributeConvention 的新執行個體。

屬性

Dependencies

此服務的相依性。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)

方法

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

在將複雜屬性新增至類似類型的物件之後呼叫。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

在複雜屬性的備份欄位變更之後呼叫。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, BackingFieldAttribute, MemberInfo, IConventionContext)

將屬性設定為根據 BackingFieldAttribute 屬性的備份欄位的慣例。

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

在將複雜屬性新增至具有相關聯 CLR 屬性或欄位之屬性的類型之後呼叫。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, BackingFieldAttribute, MemberInfo, IConventionContext)

在屬性加入至實體類型之後呼叫,該實體類型具有相關聯 CLR 屬性或欄位上的屬性。

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

在屬性新增至實體類型之後呼叫。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

在屬性加入至實體類型之後呼叫,該實體類型具有相關聯 CLR 屬性或欄位上的屬性。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

在屬性的支援欄位變更之後呼叫。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)

適用於