In Entity Framework, how do I create a table?

asp.net entity-framework

Question

I created a project in Asp.net that uses Entity Framework.

At this point, I want to add a table or tables to the database and a few stored procedures. However, entities don't display the new table.

How can this be demonstrated?

1
37
6/24/2011 11:55:59 AM

Accepted Answer

Right-click anywhere in the modal to pick "Update Model from Database," open the edmx file, then follow the on-screen directions to choose the necessary tables and SPs.

enter image description here

Close Visual Studio and restart it if, after doing the steps above, your model is still not updated. For me, this has occurred often.

77
11/29/2016 6:46:02 AM

Popular Answer

The best response is Sharique's. But I did observe something: If you attempt to create a new Entity (right click the design surface, Add -> Entity), the popup box "Add Entity" will not appear when the Mapping Details window is open (near the Error List, Output).



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow