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

Make required dependent columns in shared table non-nullable. #21952

Merged
merged 1 commit into from
Aug 6, 2020

Conversation

AndriySvyryd
Copy link
Member

Part of #12100

@@ -3540,6 +3585,13 @@ public virtual void ForeignKey_deleteBehavior_is_stored_in_snapshot_for_one_to_o
.HasForeignKey(""Microsoft.EntityFrameworkCore.Migrations.ModelSnapshotSqlServerTest+EntityWithOneProperty"", ""Id"")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();

b.Navigation(""EntityWithTwoProperties"");
Copy link
Member

Choose a reason for hiding this comment

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

Should we avoid empty navigation calls?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's hard to do with the way the code is structured. Usually we don't mind unnecessary calls in the snapshot because no one should look at it. But I'll let @bricelam make a call here.

Copy link
Contributor

Choose a reason for hiding this comment

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

File an issue. Fine for 5.0

Copy link
Member Author

Choose a reason for hiding this comment

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

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.

3 participants