-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Update discriminator columns when PK-to-PK dependent type is changed #29876
Conversation
@AndriySvyryd I'm not sure if this is the correct fix, and also this scenario doesn't work for TPT or TPC. However, those cases are not regressions, so we may want to fix this case and leave the others for now. |
var nonMainEntry = (!_mainEntryAdded || entry != _entries[0]) | ||
|| (updating | ||
&& (entry.EntityState == EntityState.Deleted | ||
|| entry.EntityState == EntityState.Added)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than changing this add to the condition on 548 || entry.SharedIdentityEntry != null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work. Thanks!
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Fixes #29789
Also tests for #29874 and #29875