Manually editing database in code first entity framework

后端 未结 4 1554
没有蜡笔的小新
没有蜡笔的小新 2021-02-13 18:55

I have been trying out EF 4.1 (code first) with MVC 3. I am thinking ahead to when the application will need changes. I tested a couple of scenarios. I like the

4条回答
  •  隐瞒了意图╮
    2021-02-13 19:41

    change the class with the new fieldnames, delete the table "EdmMetaData" then recompile your app.

    You will be responsible on modifying the fieldname on your views.

    it works for me.

提交回复
热议问题