共用方式為


DiscriminatorConvention.SetDefaultDiscriminatorValues 方法

定義

設定指定實體類型的辨別子值。

protected virtual void SetDefaultDiscriminatorValues (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType> entityTypes, Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDiscriminatorBuilder discriminatorBuilder);
abstract member SetDefaultDiscriminatorValues : seq<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType> * Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDiscriminatorBuilder -> unit
override this.SetDefaultDiscriminatorValues : seq<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType> * Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDiscriminatorBuilder -> unit
Protected Overridable Sub SetDefaultDiscriminatorValues (entityTypes As IEnumerable(Of IConventionEntityType), discriminatorBuilder As IConventionDiscriminatorBuilder)

參數

entityTypes
IEnumerable<IConventionEntityType>

要設定的實體類型。

discriminatorBuilder
IConventionDiscriminatorBuilder

辨別子產生器。

適用於