After reading third-party data, check whether it exists in the current system based on the third-party primary key. If it exists, update. If not, insert Then use the primary key value of the current DataRow (such as an order) to query other tables (such as order entries, logistics records). If only update is executed, there will be no primary key value in the current DataRow
大概的意思我是看明白了,现在DataRow和DataSet的override方法上加一个参数
DataSet/DataRow.override(Boolean override, Boolean sync)
如果sync=true 并且 数据存在的情况下,把数据库中的数据同步到当前DataRow中,只同步当前DataRow中没有的数据
DataSet/DataRow.override(Boolean override, Boolean sync)
如果sync=true 并且 数据存在的情况下,把数据库中的数据同步到当前DataRow中,只同步当前DataRow中没有的数据