Model configuration: Ignoring base types can leave behind unnecessary discriminator column #7539
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Suppose we have this model:
and is configured like this:
Running migrations will produce this:
Notice the Discriminator column in the
ExtendedCart
table. I'm ignoring theCart
type andCart
property of theCartItem
type. TheCart
type is referenced nowhere. Do we really still need a discriminator column here?This used to work fine without the need for a discriminator column before 1.1.0.
Further technical details
EF Core version: 1.1.0
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
IDE: Visual Studio 2015
The text was updated successfully, but these errors were encountered: