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

前端 未结 6 679
粉色の甜心
粉色の甜心 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:28

    Usually in such cases people use Database First approach.

    Writing entities code manually when someone already designed database for you and when you can generate or update the model with several clicks just makes no sense. Of course, Code First could be convenient if your team is familiar with some other ORM where it was main approach and is not quite familiar with Entity Framework yet, or if your team is extremely small and nobody can write SQL script, but if you have skilled DBA, why you could need Code First?

提交回复
热议问题