KeyDiscoveryConvention.ProcessPropertyFieldChanged 方法

定義

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

C#
public virtual void ProcessPropertyFieldChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, System.Reflection.FieldInfo newFieldInfo, System.Reflection.FieldInfo oldFieldInfo, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<System.Reflection.FieldInfo> context);

參數

propertyBuilder
IConventionPropertyBuilder

屬性的產生器。

newFieldInfo
FieldInfo

新欄位。

oldFieldInfo
FieldInfo

舊欄位。

context
IConventionContext<FieldInfo>

與慣例執行相關聯的其他資訊。

實作

適用於

產品 版本
Entity Framework Core 3.0, 3.1