开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜