How to add table in Entity Framework?

后端 未结 2 573

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

Now I want to add one or more tables in the database and one or more stored procedures. But entities n

2条回答
  •  不思量自难忘°
    2020-12-28 14:23

    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.

提交回复
热议问题