How to use PreCondition with ProjectTo #3991
cuongdo926
started this conversation in
NA
Replies: 1 comment
-
https://docs.automapper.org/en/latest/Queryable-Extensions.html#supported-mapping-options |
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.
-
I have a PostDto class that has some count properties such as CommentCount, and AnswerCount...
How can I use ProjectTo with PreCondition or is there any way to do it with AutoMapper?
Below are 2 worked solutions but I wonder if there is any way to use with AutoMapper:
Select
but the code is messy with many manual map and many conditions to get properSelect
Beta Was this translation helpful? Give feedback.
All reactions