Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Got it! Can’t believe all this time I never knew that!! Learn something new everyday. Many thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Source/destination types
Mapping configuration
Version: 10.1.1
EF Core is 5.0.8
Expected behavior
When using the ProjectTo functionality with EF Core 5's new filtered include functionality, the filtered include is not processed.
It's expected that this returns entity A with those records from B where property C equals a value D.
Actual behavior
In looking at the resulting SQL, the where clause is never materialized into the query--it proceeds as if the where clause is not there. If you remove the ProjectTo, the where clause is included in the query as expected.
Steps to reproduce
Please see my sample project at https://github.com/ww2406/AutomapperFilterIncludeIssue.
Beta Was this translation helpful? Give feedback.
All reactions