How to separate large table into multiple discrete types using EF-Code-First
I am trying to separate a large table into multiple discrete types. I'm following the example here: http://weblogs.asp.net/manavi/archive/2011/04/24/associations-in-ef-4-1-code-first-part-4-table-splitting.aspx?CommentPosted=true#commentmessage It's working for a primary type and a sub-type, but does not work when I employ multiple types. I received an error The Entity types 'CampaginFeedback' and 'CampaignSurvey' cannot share table 'Campaign' because they are not int he same type hierarchy or do not have a valid one to one foreign key relationship with matching primary keys between them. Here