You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: entity-framework/ef6/modeling/code-first/migrations/teams.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -136,7 +136,8 @@ The following process can be used for this approach, starting from the time you
136
136
3. Run **Update-Database** to apply any new migrations that other developers have checked in.
137
137
**_Note:_***if you don’t get any warnings from the Update-Database command then there were no new migrations from other developers and there is no need to perform any further merging.*
138
138
4. Run **Add-Migration <pick\_a\_name> –IgnoreChanges** (for example, **Add-Migration Merge –IgnoreChanges**). This generates a migration with all the metadata (including a snapshot of the current model) but will ignore any changes it detects when comparing the current model to the snapshot in the last migrations (meaning you get a blank **Up** and **Down** method).
139
-
5. Continue developing, or submit to source control (after running your unit tests of course).
139
+
5. Run **Update-Database** to re-apply the latest migration with the updated metadata.
140
+
6. Continue developing, or submit to source control (after running your unit tests of course).
140
141
141
142
Here is the state of Developer \#2’s local code base after using this approach.
0 commit comments