Is there an alternative to Code First Migrations with EF when all code changes are done by a DBA?

前端 未结 6 668
粉色の甜心
粉色の甜心 2021-02-06 03:04

I\'ve read about Code First Migrations but it seems that this is not really suited to the Enterprise.

We have a DBA that does all our Database changes and we don\'t nee

6条回答
  •  迷失自我
    2021-02-06 03:37

    Few days ago i faced the same problem,

    old database, the __MigrationHistory table is enter image description here

    made change in the database and recreated it at local machine enter image description here

    added ContextKey, Model and ProductVersion from the __MigrationHistory table of currently created database, to old database’s __MigrationHistory table. enter image description here

    oh don't forget to use alter scripts to old database. For more just check,

    http://www.codeproject.com/Tips/800936/Entity-Framework-code-first-migrations-alternative

提交回复
热议问题