Closed TheConstructor closed 2 years ago
Added a test; with EF Core 5/6 my implementation works, while the original solution can not be translated by EF Core (Exception). Please verify against older targets, as I don't have them handy right now.
@StefH I am pretty sure I did, but I opened this PR 5 months ago 😅
This should archive the same result, but would be way more readable. Also it doesn't require reflection.
It may also be possible to merge the remapping from a separate Select into the SelectMany, but I don't know, if this is something EF (Core) would always understand right.