语言

DiscriminatorConvention 类

定义

将层次结构中实体类型的歧视性值配置为实体类型名称的约定。

[System.Runtime.CompilerServices.Nullable(0)]
public class DiscriminatorConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IDiscriminatorPropertySetConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
public class DiscriminatorConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type DiscriminatorConvention = class
    interface IEntityTypeBaseTypeChangedConvention
    interface IConvention
    interface IEntityTypeRemovedConvention
    interface IDiscriminatorPropertySetConvention
type DiscriminatorConvention = class
    interface IEntityTypeBaseTypeChangedConvention
    interface IConvention
    interface IEntityTypeRemovedConvention
Public Class DiscriminatorConvention
Implements IDiscriminatorPropertySetConvention, IEntityTypeBaseTypeChangedConvention, IEntityTypeRemovedConvention
Public Class DiscriminatorConvention
Implements IEntityTypeBaseTypeChangedConvention, IEntityTypeRemovedConvention
继承
DiscriminatorConvention
派生
特性
实现

注解

有关详细信息和示例,请参阅 模型生成约定 。

适用于