Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[feature/netcore] ODataActionParameters is not binding parameters #1249
I am migrating some code from MVC5 to .NET Core and I can see that
I am definitely registering the OData Action in the same way as before:
And I can see that the pageId param is definitely being sent in the request.
Anything else you need from me in order to investigate further? Thanks in advance.
[FromBody] is no longer implicit in AspNetCore. We could add it by default but then you lose some control.
From the docs:
See this test for an example.
@robward-ms Thanks, but I see a problem with that. Although adding
UPDATE: I just realized: I may be able to convert this into an OData function instead of an OData action... and solve it that way.. because I only have 1 param I am getting from the
@robward-ms OK yes, I solved this by doing the following:
Seems to be working fine now. So for OData actions, we can only have 1 param and decorate it with
@Domitnator Hope this helps you too...