Ok, so because ProductId is defined on the InventoryBase class, and because I'm using TPT inheritance in the inventory class tree, the derived inventory types don't get a ProductId column in the database. This means that the Inventory table must define the
foreign key relationships for all derived types rather than the derived inventory type definine a relationship to it's specific derived product type. Following this?
vinneyk
Member
139 Points
92 Posts
Re: EF Code First generating duplicate index names for base class
Aug 03, 2012 05:48 PM|LINK
Ok, so because ProductId is defined on the InventoryBase class, and because I'm using TPT inheritance in the inventory class tree, the derived inventory types don't get a ProductId column in the database. This means that the Inventory table must define the foreign key relationships for all derived types rather than the derived inventory type definine a relationship to it's specific derived product type. Following this?