Manually editing database in code first entity framework

后端 未结 4 1567
没有蜡笔的小新
没有蜡笔的小新 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:38

    As I can see, there aren't really any methods built-in EF for code-first data evolution.

    For what was of my initial question, the answer lies in removing the schema generation/validation. It is only then that manually editing the code and database may work.

    UPDATE : EF 5.0 now support migrations

提交回复
热议问题