Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Entity Framework Code First Migration process between environments

I'm working in a team of four developers and we sometimes run into issues with EF Code First Migrations between different branches and releasing to staging from dev. We are using git.

What is the best process flow to follow between:

  1. Devs working on different branches/features and eventually merging changes without loosing any migrations created in these branches/features.
  2. Releasing to staging/live.

1 Answers

  1. Read this MSDN article that addresses issues related to EF Code First Migrations in team environments.

  2. There are a lot of branching strategies available out there, you could explore them and use the one that best suits your needs. Have a look at git-flow, which is one of the branching models for Git.

like image 97
ashin Avatar answered Mar 19 '26 01:03

ashin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!