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

5.0 Migrations: Correctly generate UseIdentityColumn(s) API in snapshot #22640

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

smitpatel
Copy link
Member

@smitpatel smitpatel commented Sep 21, 2020

Resolves #22632

Description

In EF Core 3.1, for provider specific annotations we generated HasAnnotation in model snapshot, which we improved to generate specific fluent API calls. For particular API call UseIdentityColumn we set other annotations whose values are default values in the method parameter but when generating the code, we did not account for those default values correctly generating same API with arguments.

Customer Impact
This change in API causes a diff when adding new migration which can cause conflict. Further changing this after 5.0 would cause diff in other direction in future release.

How found

Customer reported on RC1.

Test coverage
We did not have proper coverage for round-tripping the API. Added tests for this API for all variations.

Regression?
Yes, from 3.1.

Risk
Low. Fix is localized, and only affect aforementioned API.

@smitpatel smitpatel changed the title Migrations: Correctly generate UseIdentityColumn(s) API in snapshot 5.0 Migrations: Correctly generate UseIdentityColumn(s) API in snapshot Sep 21, 2020
@smitpatel smitpatel changed the base branch from main to release/5.0-rc2 September 21, 2020 19:28
@smitpatel smitpatel requested a review from a team September 21, 2020 19:28
@ajcvickers
Copy link
Member

Approved by Tactics

@smitpatel smitpatel merged commit 6886dc8 into release/5.0-rc2 Sep 21, 2020
@smitpatel smitpatel deleted the smit/a branch September 21, 2020 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5.0 RC1 UseIdentityColumn arguments unstable in snapshot?
4 participants