Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some breaking changes #2621

Merged
merged 1 commit into from
Sep 9, 2020
Merged

Add some breaking changes #2621

merged 1 commit into from
Sep 9, 2020

Conversation

AndriySvyryd
Copy link
Member

Fixes #2526
Fixes #2585
Fixes #2225
Fixes #2546

@AndriySvyryd AndriySvyryd requested a review from a team September 9, 2020 02:02
@AndriySvyryd AndriySvyryd merged commit 19dc3d7 into master Sep 9, 2020
@AndriySvyryd AndriySvyryd deleted the BreakingChanges branch September 9, 2020 03:59

**New behavior**

`IMigrationsModelDiffer` API now uses `IRelationalModel`. However the model snapshot still contains only `IModel` as this code is part of the application and Entity Framework can't change it without making a bigger breaking change.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still have an issue to update the snapshot, right? I'd really like to do that if we can...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean dotnet/efcore#18557? It would still be opt-in, so we'll have to support old snapshots for a while.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kind of... We could switch to new snapshots only having a RelationalModel but the default implementation could get it from any existing IModel. That command would just help "normalize" old migrations and snapshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants