AutomaticMigrationsEnabled false or true?

后端 未结 2 981
故里飘歌
故里飘歌 2020-12-03 00:46

In EF projects, Is there any best practice for setting AutomaticMigrationsEnabled ?

More declaration:

In our team after modifying a model we

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-03 01:27

    From: http://msdn.microsoft.com/en-us/data/jj554735.aspx

    Recommendation for Team Environments

    You can intersperse automatic and code-based migrations but this is not recommended in team development scenarios. If you are part of a team of developers that use source control you should either use purely automatic migrations or purely code-based migrations. Given the limitations of automatic migrations we recommend using code-based migrations in team environments.

提交回复
热议问题