I have an ASP.NET MVC app built using NET 4.5 and Entity Framework database first. I am using Visual Studio 2013.
Now I am trying to update the edmx from database. Basically I am trying to add a table to the edmx diagram so I follow below steps:
Open edmx diagram from Visual Studio
Choose the option to update diagram from database
Navigate to 'Add' Tab in order to add the table, but table is not being shown there..... Also the auto-generated cs file does not exist in the folder.
So I go to Update Tab, and I can see that table is being shown there, however table is not being shown in the diagram.
So I decide to open edmx file using an editor and I remove all the entries for that table (It seems like somebody deleted the table in the past but entries in the edxm were not removed and they still were there). Anyway, after that I follow below steps:
- Open edmx diagram again
- Choose option update from database and go to Add Tab. Now table is shown there.
- Select the table I am interested in
- Press button finish to proceed to update the edmx diagram.
Now I look for the table into edmx diagram but table is not there, it is not being added... and the auto-generated cs file does not exist in the folder.
So how can I add the table to the edmx diagram?