New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support PATCH to a complex type. #135
Comments
On 2014-10-14 21:20:55 UTC, skotapati commented: Just wondering when will this feature be available in WebAPI/OData? |
Is this being worked upon? |
+1 on this. Using complex types simplifies the data models, especially for nested structures |
+1 on this. Not being able to patch nested objects is a big limitation. |
Without nested objects this feature is unfortunately almost useless. |
Below is my Address entity, it has PostalAddress as nested entity, I am trying to do patch update. If I pass simple object it works. is it because Delta not support nested object or Patch in Odata service is not supporting it. |
Hi, As far as I know at the moment OData Web API does not support Patch within Shaun On Wed, Dec 23, 2015 at 1:29 PM, RavindraBarapatre <notifications@github.com
Regards, Shaun Grech Co-Founder, Incredible Web / Bum a Lift |
Ohhh .. :( |
without supporting nested objects, i believe this is not an useful one. |
+100 |
1. Put 2. Patch 3. Delete
Dear customers, Would you please help me try the [PR]#623 and give me some feedback? I would like to put it into 5.9 beta so customers can use it from nightly build. Thanks. |
1. Put 2. Patch 3. Delete
I merged my fix. Anyone who try it and find any issue, please reopen it or file a new issue for us. Thanks in advance. |
package id="Microsoft.OData.Core" version="7.0.0" targetFramework="net462" These packages are totally different compared with 5.9.x |
I can't even get my odata v4 api controller to support PATCHing of my main entity Have no idea how to get an ajax PATCH request to work.. always get a null at my controller's 'delta' parameter NuGet packages: |
Important is the body and the URL syntax e.g. public async Task<IHttpActionResult> Patch(Guid key, [DeltaBody] Data.OData.Delta<company> delta) Second, I copied Delta from the Github 5.9 libraries, that are more recent than the 7.0 libraries and 'renamed' the namespace so I got it working, more or less. |
Hi Egbertn, |
Hi Egbertn, |
Yes, we are currently using it in all our projects for several months now- I've put your code into a standalone assembly that I can reference in each WebAPI project |
I guess this issue is still not resolved? If so, which version? Try 6.1/7.0 failed. { |
Is it possible to do a patch method without delta ? only with type ? |
Yes i opened new issue about that |
Is there an equivalent for aspecore ? |
Here, again, it should not be done like this. References must be updated by item directly Odata 'assumes' that a SQL database is used at the background, so in a database world, the one side of the relation, is and should be updated. The many side, just contains a reference to a primary / foreign key. |
Now we the Delta class only supports Entity type, but the protocol also
supports PATCH to a complex type:
Work Item Details
Original CodePlex Issue: Issue 2066
Status: Proposed
Reason Closed: Unassigned
Assigned to: Unassigned
Reported on: Jul 16, 2014 at 4:02 AM
Reported by: jinfutan
Updated on: Oct 20, 2014 at 7:28 PM
Updated by: abatishchev
The text was updated successfully, but these errors were encountered: