Can Update Objects From Stored Procedures

Jun 7, 2011 at 8:53 PM

It appears that objects returned from Stored Procedures or Functions are not able to update.

The ObjectContext creates ODataObjects from the response of a Stored Procedure much the same way as a standard Query, but then creates a deepCopy of these objects before they are returned. These copy objects are not in the ObjectContext and thus if I try to change the object and save it to the server I get an exception.

"Invalid Operation"

Is this intended behavior and if so can you explain why we want copies of the objects and the correct way to update these objects.