开发者

Update Object with only delta changes from XML

I have 2 datasets loaded with data from two xml files having the same schema. The files contain data from yesterday and today. I'd like to merge both datasets in such a way that the resulting dataset should have all the today's data overriding yestrerday's data.

CATCH: the today's dataset contains only the daily changes (DELTA) and merging should not remove all unchanged records from yesterday.

Is it possible that I can acheive this via Reflection? What's the most efficient way of doing so ?

Any idea开发者_如何转开发s would be helpful..


You can use the Merge method of the DataTable class.

Or you can just use the Merge method of the DataSet class as well.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜