共用方式為


ForeignKeyPropertyDiscoveryConvention.ProcessKeyAdded 方法

定義

在將索引鍵新增至實體類型之後呼叫。

public virtual void ProcessKeyAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder keyBuilder, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder> context);
abstract member ProcessKeyAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder> -> unit
override this.ProcessKeyAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder> -> unit
Public Overridable Sub ProcessKeyAdded (keyBuilder As IConventionKeyBuilder, context As IConventionContext(Of IConventionKeyBuilder))

參數

keyBuilder
IConventionKeyBuilder

索引鍵的產生器。

context
IConventionContext<IConventionKeyBuilder>

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

實作

適用於