Entity Framework : How do you refresh the model when the db changes?

前端 未结 9 946
囚心锁ツ
囚心锁ツ 2020-12-01 01:56

If you build the edmx file from the database and then the db changes, how do you get the model to pick up the change?

Do you delete the whole model and regenerate or

9条回答
  •  暖寄归人
    2020-12-01 02:16

    Double click on the .edmx file then right_click anywhere on the screen and choose "Update Modle From DB". In the new window go to the "Refresh" tab and choose the changed table/view and click Finish.

提交回复
热议问题