Replies: 1 comment 1 reply
-
See this. |
Beta Was this translation helpful? Give feedback.
1 reply
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
I created this simple example:
Mapping configuration
Version: 10.1.1
AutoMapper: 10.1.1
AutoMapper.Extensions.Microsoft.DependencyInjection: 8.1.1
Microsoft.EntityFrameworkCore: 5.0.9
Microsoft.EntityFrameworkCore.SqlServer: 5.0.9
Expected behavior
When I try to query blog entities with connected (active!) posts I get results as expected without using automapper.
This query is generated:
Actual behavior
When I'm using
ProjectTo
, the query generated is missing filter for active flag.In my result, all posts are present no matter the active flag.
Steps to reproduce
I'm not sure this is expected behavior. Or am I doing something worng?
Beta Was this translation helpful? Give feedback.
All reactions