共用方式為


ForeignKeyPropertyDiscoveryConvention.ProcessPropertyFieldChanged 方法

定義

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

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);
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);
abstract member ProcessPropertyFieldChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * System.Reflection.FieldInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<System.Reflection.FieldInfo> -> unit
override this.ProcessPropertyFieldChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * System.Reflection.FieldInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<System.Reflection.FieldInfo> -> unit
Public Overridable Sub ProcessPropertyFieldChanged (propertyBuilder As IConventionPropertyBuilder, newFieldInfo As FieldInfo, oldFieldInfo As FieldInfo, context As IConventionContext(Of FieldInfo))

參數

propertyBuilder
IConventionPropertyBuilder

屬性的產生器。

newFieldInfo
FieldInfo

新欄位。

oldFieldInfo
FieldInfo

舊欄位。

context
IConventionContext<FieldInfo>

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

實作

適用於