I use WCF ODATA to communicate with my JavaScript client.
When I do an update operation, the SaveChanges method is called.
The problem is that I also use a ChangeInterceptor for setting a property value on my entity
before saving to DB.
Now the problem is that the SaveChanges method returns void.
It would be great if it could return the actual saved entity
instead so that the client is aware of changes made by the server.
Am I missing something and this is already possible ? Or would that be a change request ?
Thanks
EDIT: When an new entity is inserted, it is actually returned by the server. Only updated entities are not returned.
See the response of the $batch call for an insert:
and the response of the $batch call for an update. Notice that the data is not returned this time: