共用方式為


DiscriminatorConvention.ProcessDiscriminatorPropertySet 方法

定義

在設定鑒別子屬性之後呼叫。

public virtual void ProcessDiscriminatorPropertySet (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string? name, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<string> context);
abstract member ProcessDiscriminatorPropertySet : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * string * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<string> -> unit
override this.ProcessDiscriminatorPropertySet : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * string * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<string> -> unit
Public Overridable Sub ProcessDiscriminatorPropertySet (entityTypeBuilder As IConventionEntityTypeBuilder, name As String, context As IConventionContext(Of String))

參數

entityTypeBuilder
IConventionEntityTypeBuilder

實體類型的產生器。

name
String

鑒別子屬性的名稱。

context
IConventionContext<String>

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

實作

適用於