EF 6.1 Code First - the number of columns specified must match the number of primary key columns
问题 I am running into the following error while trying to migrate a database in Entity Framework. The specified association foreign key columns 'question_set_id' are invalid. The number of columns specified must match the number of primary key columns. I dropped the original primary key QuestionSetId and created a composite key relationship. The columns in the composite key relationship also map to foreign keys. I'm not sure what the issue is. Here is the associated entity. public class