chetan singhal chetan singhal - 1 year ago 118
ASP.NET (C#) Question

How to add table in Entity Framework?

I have a project that I made in with Entity Framework.

Now I want to add one or more tables in the database and one or more stored procedures.
But entities not shows the new table.

How to show this?

Answer Source

Open edmx file, right click anywhere in the modal and select "Update Model from Database" and follow the instructions and choose the desired tables and SPs.

enter image description here

Sometimes even after following these steps, your model will not get updated, close Visual Studio and restart it again. This has happened many times for me.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download