Add breaking change documentation for pending model changes#4895
Merged
AndriySvyryd merged 1 commit intomainfrom Dec 3, 2024
Merged
Add breaking change documentation for pending model changes#4895AndriySvyryd merged 1 commit intomainfrom
AndriySvyryd merged 1 commit intomainfrom
Conversation
2a2731b to
20b226b
Compare
cincuranet
approved these changes
Dec 3, 2024
roji
reviewed
Dec 4, 2024
| - **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()`. | ||
| - The last migration was created for a different provider than the one used to apply the migrations. | ||
| - **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). | ||
| - The migrations are generated or choosen dynamically by replacing some of the EF services. |
Member
There was a problem hiding this comment.
Suggested change
| - The migrations are generated or choosen dynamically by replacing some of the EF services. | |
| - The migrations are generated or chosen dynamically by replacing some of the EF services. |
Member
Author
There was a problem hiding this comment.
Feel free to massage this text further to make it useful to more of our userbase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4891