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

Create GraphUpdatesTests for owned entities #23212

Merged
merged 1 commit into from
Nov 25, 2020
Merged

Create GraphUpdatesTests for owned entities #23212

merged 1 commit into from
Nov 25, 2020

Conversation

AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Nov 6, 2020

Disable owned entity reparenting if it leads to key modification
Fix default SQL Server value generation strategy for shared columns
Query: Detect parent identifier correctly when parent has owned navs

Fixes #16454

@AndriySvyryd AndriySvyryd requested a review from a team November 6, 2020 02:04
@smitpatel
Copy link
Member

You just added 1622 new tests 😮

@smitpatel
Copy link
Member

smitpatel commented Nov 6, 2020

Can I piggy-back on this PR? 🐖 (Can also submit the fix to main directly)
I got fix for split query. Though there are still 258 failing tests.

  • PK violation
  • Some tests are trying to create DbSet for owned types
  • Some issue with IsLoaded flag.

@AndriySvyryd
Copy link
Member Author

AndriySvyryd commented Nov 6, 2020

Feel free to do either one

@ajcvickers
Copy link
Member

@AndriySvyryd So happy to see this testing! It's been on my TODO list forever.

@AndriySvyryd
Copy link
Member Author

I disabled special-casing for owned entities that allowed reparenting of non-added entities with identifying FKs. #19135 would be the proper way of doing that, but if we don't revert the behavior I also filed dotnet/EntityFramework.Docs#2859

Disable owned entity reparenting if it leads to key modification
Fix default SQL Server value generation strategy for shared columns

Fixes #16454
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.

Create GraphUpdateTests for owned entities
3 participants