Migration using model first approach in entity framework

后端 未结 2 1465
伪装坚强ぢ
伪装坚强ぢ 2020-12-31 06:46

I have setup a system where I have taken the model first approach as it made more logical sense for me. Now when even I have some changes in the model currently what I do is

2条回答
  •  清歌不尽
    2020-12-31 07:18

    You can try Database Migration Power Pack - it allows creating change scripts instead of full database scripts but on behind it does the same procedure as you did by hand. The problem is that mentioned tool will not work with EF5.

    Unfortunately EF migrations currently don't support models created through EDMX. Migrations support only code first approach at the moment.

提交回复
热议问题