I am faced with a new issue, I have been using entity framework in one of my projects for quite sometime. Today I came across a table in sql that was created by someone who worked on the project a long time ago.
The table had no Primary Key column so I decided to add 1 in, I then updated the EDMX file in my solution but it now keeps throwing up this error:
Must specify mapping for all key properties.
I dropped the table and recreated but this error is not going away at all.
I would really appreciate some help on this.
What I have tried:
Google the issue.
Delete the current EDMX and import a new 1.
Rebuild/Clean the solution.