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/core/what-is-new/ef-core-9.0/breaking-changes.md
+44-3Lines changed: 44 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,10 +66,51 @@ There are several common situations when this exception can be thrown:
66
66
-**Mitigation**: Add a new migration, examine its contents to locate the cause, and replace the dynamic data with a static, hardcoded value in the model. The migration should be recreated after the model is fixed. If dynamic data has to be used for seeding consider using [the new seeding pattern](/ef/core/what-is-new/ef-core-9.0/whatsnew#improved-data-seeding) instead of `HasData()`.
67
67
- The last migration was created for a different provider than the one used to apply the migrations.
68
68
-**Mitigation**: This is an unsupported scenario. The warning can be suppressed using the code snippet below, but this scenario will likely stop working in a future EF Core release. The recommended solution is [to generate a separate set of migrations for each provider](xref:core/managing-schemas/migrations/providers).
69
-
- The migrations are generated or chosen dynamically by replacing some of the EF services.
70
-
-**Mitigation**: The warning is a false positive in this case and should be suppressed:
71
-
69
+
- The migrations are generated, modified or chosen dynamically by replacing some of the EF services.
70
+
-**Mitigation**: The warning is a false positive in this case and should be suppressed:
Ifyourscenariodoesn't fall under any of the above cases and adding a new migration creates the same migration each time or an empty migration and the exception is still thrown then create a small repro project and [share it with the EF team in a new issue](https://github.com/dotnet/efcore/issues/new/choose).
0 commit comments