You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because we are using jsonFormatter.SerializerSettings.TypeNameHandling = TypeNameHandling.All; we are able to Deserialize the JSON back into the correct Derived Dto Classes client side, we would like to use the .Project<,> because most of our Web API GET calls are OData calls and support paging and the `Map<IEnumerable<>,IEnumerable<>>' queries the whole DB and then only returns the page size results.
Could you please help, I don't know if I'm doing something wrong or if it is even possible.
The text was updated successfully, but these errors were encountered:
Hello Yuriy
I'm having some trouble using the
.Project<,>
with an EF table-per-hierarchy (TPH) inheritanceI have an Inherited EF Entity with 3 other Entities Inheriting from it.
I'm then trying to Project those Entities to Dtos
Please have a look at the code link below for the full project
https://github.com/Tinus-H/TestDbExample
The problem is as follow
I have these Entities
and I want to Project them to these Dtos
I registered it as follow
But this does Not Work, it only returns a list of
InheritedSharedEntityDto
the Base ClassBut this does Work and return a list of the Derived Classes
Because we are using
jsonFormatter.SerializerSettings.TypeNameHandling = TypeNameHandling.All;
we are able to Deserialize the JSON back into the correct Derived Dto Classes client side, we would like to use the.Project<,>
because most of our Web API GET calls are OData calls and support paging and the `Map<IEnumerable<>,IEnumerable<>>' queries the whole DB and then only returns the page size results.Could you please help, I don't know if I'm doing something wrong or if it is even possible.
The text was updated successfully, but these errors were encountered: