Replies: 1 comment
-
I was able to get this working. Please ignore. |
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
-
Hoping someone out there can point me in the proper direction. Given the dynamic model sample (https://github.com/OData/AspNetCoreOData/tree/main/sample/ODataDynamicModel), I would like to add a new action to HandleAllController so that I can POST an IEdmEntityObject. Consider the following:
public IActionResult Post(string dataSource, [FromBody]IEdmEntityObject entityObject)
I am able to configure selectors at the action model level so that my route executes properly per the following:
if (actionModel.Parameters.Count == 2) actionModel.AddSelector( "post", prefix, model, new ODataPathTemplate( new EntitySetSegmentTemplate()));
How might I deserialize the request body into my "entityObject" parameter?
Beta Was this translation helpful? Give feedback.
All reactions