-
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
Cosmos: Navigation to parent item has different behavior in EFC 7,8 and 9 #35461
Comments
There've been quite a few changes to the Cosmos provider in EF 9. And it seems that it works as expected. Is there anything that prevents you from upgrading to EF 9? |
Yes a couple of thing locking us right now. The discriminator changes Those are the main ones. We haven’t really deep dive into it yet |
@jujinfu for all three of these changes, EF can be configured to revert to the previous behavior - please consult the Cosmos breaking changes notes. We intentionally built these opt-ins so that people wouldn't be blocked from upgrading. |
@roji thank you for the info Our plan is now get everything stable with efc 7, and then we can spend some time upgrading to efc 9 thought would be good to report the issue with efc 8 |
@jujinfu thanks, makes sense. Realistically, there's going to be little chance that we do a patch to version 8 - the bar for doing that is quite high, and the many changes we did to the provider in 9 make this more difficult (note that 6 and 7 are out of support). I suggest the following: please let us know if you're encountering this on 9; if so, we'll definitely take a look. At that point, if the fix is really simple, we can consider also backporting to 8. How does that sound? If you won't have time to test this on 9 in the near future, we can close this for now, and reopen whenever you do get to it. |
thank you @roji that makes sense we expect to move to net8 and efc7 fully by the end of the month and we will start the migration to efc9, we dont anticipate this problem to show up again in efc9 I agree we can close this ticket for the moment. but should we list this as a known issue for efc8 or not? |
FWIW I'm not sure I'd spend time on first moving to EF 7 (which is out of support) and only then transition to 9 - it may be easier to just make the jump in one go (but YMMV). We don't really have a list of known issues for EF releases - the github issues (this one) are generally good enough for that kind of thing. Let us know if you hit trouble when upgrading to 9! |
We are experiencing something strange in EFC8.
Our DBContext:
LicenseDbContext.cs
Our Models:
LicenseOptionData.cs
ProductLicenseOption.cs
Our Controller:
When we try this code in EFC7, EFC9
We get the following result:
No Tracking and Tracking are the same
When we try this in EFC8:
we get the following results:
No Tracking:
Tracking:
Final result, in EFC8, when the child references the parent item with Change Tracking, it will not return the parent by Navigation.
However, in EFC7,9, this works as expected.
We have tried many different things but we couldn't resolve this issue.
Some help would be greatly appreciated
The text was updated successfully, but these errors were encountered: