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

Reset relationship uniqueness when removing the navigation to dependent. #18521

Merged
merged 1 commit into from
Oct 23, 2019

Conversation

AndriySvyryd
Copy link
Member

Fixes #15512

Copy link
Contributor

@smitpatel smitpatel left a comment

Choose a reason for hiding this comment

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

LOC change is less than number of parameters to the method. If build passes...

@AndriySvyryd
Copy link
Member Author

I was too optimistic. Tests seemed to pass locally because I didn't see the debug asserts failing

@@ -43,6 +43,6 @@ public ConventionAnnotation([NotNull] string name, [CanBeNull] object value, Con
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual ConfigurationSource UpdateConfigurationSource(ConfigurationSource configurationSource)
=> _configurationSource = _configurationSource.Max(configurationSource);
=> _configurationSource = configurationSource.Max(_configurationSource);
Copy link
Member Author

Choose a reason for hiding this comment

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

No functional impact, just consistency

@smitpatel smitpatel requested a review from maumar October 22, 2019 23:09
@AndriySvyryd AndriySvyryd merged commit 1a699a9 into release/3.1 Oct 23, 2019
@AndriySvyryd AndriySvyryd deleted the Issue15512 branch October 23, 2019 00:15
@AndriySvyryd AndriySvyryd restored the Issue15512 branch November 2, 2019 00:42
@AndriySvyryd AndriySvyryd deleted the Issue15512 branch November 2, 2019 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EF Core 3.0 : Why does it automatically generate a unique index?
2 participants