I`m looking how can I update the part of entity via WCF Data Services 5.5, just update several field insted of whole entity.
I found several ways.
I can update whole entity using
context.AttachTo(...);
andcontext.UpdateObject(tp);
But all the entity's fields will be updated. I would like to update just only some fields.Add some logic to
RequestPipeline
and remove fields which shouldn't update, as described on the following blog: http://blogs.msdn.com/b/astoriateam/archive/2013/07/26/using-the-new-client-hooks-in-wcf-data-services-client.aspxCreate the request manually.
Are there any other ways to do this? Is there a way to configure System.Data.Services.Client.DataServiceContext
to turn on partial updates?