EF Migrations DropForeignKey fails when key is in a base class
问题 I'm attempting to update my data models for an EF 5.0.0-rc code-first class library. The first command in the Up() method is DropForeignKey("dbo.ChileInventory", new[] { "LotInventoryItemTypeId", "ChileProductId" }, "dbo.ChileProducts"); but I'm getting a SqlException: 'FK_dbo.ChileInventory_dbo.ChileProducts_LotInventoryItemTypeId_ChileProductId' is not a constraint. Could not drop constraint. I think that the cause for the error is due to the fact that my ChileProducts class get's it's key