Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はdataTables DTsource、DTtarget、およびDTdiffを持っています
DTsource.Merge(DTtarget); DTsource.AcceptChanges(); DTdiff=DTsource.GetChanges();
ソースとターゲットに異なるレコードのセットがあります。ただし、DTdiff は常に nullです。ポインタをください....
次のようにする必要があることは明らかです。
DTsource.AcceptChanges(); DTsource.Merge(DTtarget); DTdiff=DTsource.GetChanges();
以前のすべての変更は、マージの前に受け入れられます。マージ後、GetChanges にはターゲットの違いのみが含まれます。