RC2. Bad SQL strategy when LINQ lambda where clause contains references hierarchy #5457
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
I have a three models with one-to-one relationship. I need to use these relations in where clause. But instead of a single query EF executes multiple SQL statements.
Models (only relations):
My LINQ expression:
I expect SQL like this:
Or like this:
But real result contains two SQL statements:
The text was updated successfully, but these errors were encountered: