Call DataServiceContext.UpdateObject several times on the same object before saving

What happens if you call the DataServiceContext.UpdateObject method on an object, update that object (say, change the property), call the DataServiceContext.UpdateObject method again, and finally save it?

I recently discovered a strange mistake, and it looks like it was a criminal, although I still do not understand what he actually did. The save failed, and retrying ran another UpdateObject (usually with slightly different data). Is there a way to β€œclear” previous updates that occurred before the save?

+4
source share

Source: https://habr.com/ru/post/1338007/


All Articles