I built a simple ADO.Net MVC project in Visual Studio 2015, following the tutorial here . My project works, but I wanted to add more tables to the database and create some foreign keys between them and existing tables. I added the ADO.Net Entity Data Model (Project Properties> Add> New Item> Data> Entity ADO.Net Data Model> EF Designer from the Data Model) with all the tables selected. I am using (localdb) \ MSSQLLocalDB installed with Visual Studio.
My intention was to create my new tables and FK relationships in the .edmx diagram, and then the Forward Engineer of the modified model to return to the database. However, only 5 of the 6 tables created by the ASP.NET MVC template were added to the table. An AspNetUserRoles table has not been added.
Can someone explain why the table was not added and what I had to do to create new tables and key relationships? I prefer to work in a graphical environment, as I am not an expert on DB / SQL.
source share