TPT: Additional migrations drop base entity columns from derived entity table #21961
Labels
area-model-building
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Basically the title. Not sure if I'm wiring up TPT correctly, but If I create a model using TPT with base and derived classes, the first migration is what I'd expect, creating the tables. If I add a second migration, it tries to drop the columns on the base table from the table for the derived class.
Sidenote; I'm using the 3.1.6 EF Core tools (
dotnet-ef
), so if that might be it, let me know.Steps to reproduce
The second migration will try to drop BaseName from the Parent table
Further technical details
EF Core version: 5.0.0-rc.1.20406.1
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: NET Core 3.1
Operating system: Windows 10
IDE: Visual Studio 2019 16.6.5
The text was updated successfully, but these errors were encountered: