DiscriminatorConvention.SetDefaultDiscriminatorValues 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为给定实体类型配置鉴别器值。
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
鉴别器生成器。