class EntityModel { public int Id {get; set;} public ComplexObject Obj {get; set;} } class ComplexObject() { public string A {get; set;} public string B {get; set;} public string C {get; set;} }
OData.request( { requestUri: baseUrl + '(' + model.Id + ')', method: "MERGE", data: { Id: model.Id, Obj: { B : 'Foo' } } }, function () { alert("ok"); }, function (err) { alert(err.message); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)