-
Notifications
You must be signed in to change notification settings - Fork 931
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
Partial fix fetching lazy property after Select in Linq #3392
Conversation
@@ -11,12 +12,15 @@ public class ProcessFetch | |||
{ | |||
public void Process(FetchRequestBase resultOperator, QueryModelVisitor queryModelVisitor, IntermediateHqlTree tree) | |||
{ | |||
var querySource = QuerySourceLocator.FindQuerySource( |
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.
QuerySourceLocator.FindQuerySource
can't reliably detect query source. Instead of actually query source it finds first source with "compatible" type
src/NHibernate/Linq/Visitors/ResultOperatorProcessors/ProcessFetch.cs
Outdated
Show resolved
Hide resolved
Nah, it still does not work. It now has different problems. My understanding of the problem currently is that fetch requests are not properly associated to the query source. |
No. It's still about proper query source detection. Now it isn't detected properly for |
Need to find a way to reliable detect query source. I don't quite understand why query source is not part of |
b6c02f1
to
09b1d43
Compare
#3356 test case exposes 2 unrelated issues:
This PR fixes second issue (currently it's unclear how to fix first issue) |
Partial fix of #3356
Added proper from node detection required for lazy property fetching.
To fully fix #3356 we need to find a way to reliable detect query source (see #3392 (comment))