Actually, EF 6 allows you to accomplish it. Here is an illustration of how to make a unique index using the primary key....internal class DiscriminatorServerMigrationSqlGenerator : SqlServerMigrationSqlGenerator
const string DiscriminatorColumnName = "Discriminator";
protected override void Generate(CreateTableOperation op)
Any use of EF6 inheritance requires extreme caution. Even if a class is not used, referenced, or specified anywhere inside the EF model, EF utilises reflection to identify any classes within the same assembly that either directly or indirectly inherit some of the entities that are a part of EF inheritance....Adding one more class (in your example, ...