❔ Unable to get automapper's projectTo() to work properly.
I need to use ProjectTo() to properly cast a query into a DTO, but in this case my user can only contains pictures which have
How can I replicate
Deleted = false. The code below works, but all photo's are returned, including deleted ones. The commented Include() works fine, but I need the mapping to happen on query level, and not after, because of the creation of a paginatedList. If I map later, the PaginatedList misses crucial information, and I do not want to change its behaviour.How can I replicate
Include to work with projectTo? As said above, the current version is allowed, but deleted photo's are returned too.