开发者

Calling DataServiceContext.UpdateObject multiple times on the same object before saving

开发者 https://www.devze.com 2023-02-08 12:48 出处:网络
What happens if you call the DataServiceContext.UpdateObject method on an object, update that object (say, change a property), call the DataServiceContext.UpdateObject method on it again and f开发者_运

What happens if you call the DataServiceContext.UpdateObject method on an object, update that object (say, change a property), call the DataServiceContext.UpdateObject method on it again and f开发者_运维百科inally save?

I recently tracked a weird bug and it looks like that was the culprit although I still don't understand what it was actually doing. The save would fail and retrying was performing another UpdateObject (usually with slightly different data). Is there a way to "clear" any previous updates that have occurred before a save?

0

精彩评论

暂无评论...
验证码 换一张
取 消