-
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
Query: Disallow FromSql on owner when owned navigation is mapped to s… #21778
Conversation
Hello @smitpatel! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
src/EFCore.Relational/Query/RelationalQueryableMethodTranslatingExpressionVisitor.cs
Show resolved
Hide resolved
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.
Perhaps we should also block auto-included navs to types that are sharing the same table
For FromSql scenario? Non-owned? AutoInclude API navs? |
Yeeees |
That is ok. Auto-include is just one cause but otherwise any navigation usage causes us to get the other query source. For non-owned scenario, the other query source forms own query root and can have own mapping used. There is also #14525 |
@smitpatel I understand that it's possible, it just seems ambiguous as to what shape needs-design? |
Filed #21781 |
…ame table Resolves #21769 It would still work if owned navigation data is not accessed. Though keep in mind that selecting entity will bring owned data too due to auto include
…ame table
Resolves #21769
It would still work if owned navigation data is not accessed. Though keep in mind that selecting entity will bring owned data too due to auto include