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
It seems a bit convoluted, but worked fine, in that I can query my "LocationDTO" entity and run spatial filters/orderbys as expected. However, now when I try to use that entity as a parameter for actions, it doesn't work anymore - for instance:
var srvaddstep1 = builder.EntityType<ServiceDTO>().Collection.Action("AddStep1");
srvaddstep1.Parameter<AccountDTO>("Account");
srvaddstep1.Parameter<LocationDTO>("Location");
With the spatial column added, the ODataActionParameters in my controller function is always null - despite the fact I can see that the client is sending what looks like the proper JSON. If I comment out the spatial stuff in LocationDTO, everything goes back to working as expected (i.e. ODataActionParameters in my controller is no longer null).
Using latest/greatest odata on .netcore 8
The text was updated successfully, but these errors were encountered:
I added a Point property to my entity following this guide:
https://devblogs.microsoft.com/odata/customizing-filter-for-spatial-data-in-asp-net-core-odata-8/
It seems a bit convoluted, but worked fine, in that I can query my "LocationDTO" entity and run spatial filters/orderbys as expected. However, now when I try to use that entity as a parameter for actions, it doesn't work anymore - for instance:
With the spatial column added, the ODataActionParameters in my controller function is always null - despite the fact I can see that the client is sending what looks like the proper JSON. If I comment out the spatial stuff in LocationDTO, everything goes back to working as expected (i.e. ODataActionParameters in my controller is no longer null).
Using latest/greatest odata on .netcore 8
The text was updated successfully, but these errors were encountered: