Replies: 1 comment
-
See Issue #173 . Consider using a separate configuration for this library vs. other calls. |
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
-
Trying to fix my issue with using automapper for getting a single result back.
https://stackoverflow.com/questions/77655250/fix-automapper-odata-for-getting-a-single-result-back
CreateMap<Order, OrderDto>().ForAllMembers(opt => opt.ExplicitExpansion());
GetOrdersAsync - is working, I can query for expanded Categories and without. The query is optimised depending on whether it is expanded or not.
GetOrderByIdMapperAsync - has been impacted due to the ExplicitExpansion and just throws null for my navigation properties e.g. CategoryName is null.
If this is the wrong place for this please delete :)
See stackoverflow for more information on the controllers etc. and some things I attempted based on one response I received
Beta Was this translation helpful? Give feedback.
All reactions