共用方式為


IDiscriminatorPropertySetConvention.ProcessDiscriminatorPropertySet 方法

定義

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

public 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
Public Sub ProcessDiscriminatorPropertySet (entityTypeBuilder As IConventionEntityTypeBuilder, name As String, context As IConventionContext(Of String))

參數

entityTypeBuilder
IConventionEntityTypeBuilder

實體類型的產生器。

name
String

辨別子屬性的名稱。

context
IConventionContext<String>

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

適用於