OData $orderby on complex property in projected DTO causes error #1517
Unanswered
aakashbashyal-maitri
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building an OData endpoint using EF Core and ODataQueryOptions, and I want to allow clients to
$orderby
a property that comes from a nested collection in my projection.I have the following entities and DTOs:
My query looks like this:
I want to allow the client to do:
But I get the following error:
How can I enable $orderby on a nested/complex property in a DTO projected from an EF Core query using OData?
Beta Was this translation helpful? Give feedback.
All reactions