ForeignKeyPropertyDiscoveryConvention.ProcessPropertyAdded 方法

定義

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

C#
public virtual void ProcessPropertyAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder> context);

參數

propertyBuilder
IConventionPropertyBuilder

屬性的產生器。

context
IConventionContext<IConventionPropertyBuilder>

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

實作

適用於

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