开发者

Update Object with only delta changes from XML

开发者 https://www.devze.com 2023-01-24 16:27 出处:网络
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

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

精彩评论

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