title: get the differences in 2 DataSets c#
body: <p>I am writing a short algorithm which has to compare two DataSets, so that the differences between both can be further processed. 
  I tryed accomplishing this goal by merging these two DataSets and get the resulting changes into a new DataSet.</p>
  
  <p>My Method looks like this:</p>
  
  <pre><code>    private DataSet ComputateDiff(DataSet newVersion, DataSet oldVersion) 
      {
          DataSet diff = null;
          oldVersion.Merge(newVersion);
          bool foundChanges = oldVersion.HasChanges();
          if (foundChanges) 
          {
              diff = oldVersion.GetChanges();
          }
          return diff;
      }
  </code></pre>
  
  <p>The result of foundChanges is always false, even though the two DataSets have different values in it.
  Both DataSets have the same strukture. They consist of three DataTables which are the result of three querys in a Database.
  The merge works fine no problems with that.</p>
  
  <p>My question is:
  Is there any reasonable explanation why the foundChanges variable is always false and if not would Linq provide a proper solution for this problem or do i have to determine the changes by iterating through the DataSets</p>
  
  <p>Here are some further informations:
  The programming language is C#
  I am using .Net framework 4.0
  I am developing on a Windows 8 Machine
  The Data as mentioned comes from a Database(MSSQL Server 2012 express)
  My DataSets or DataTables haven't got any PK's as far as i know.</p>
  
  <p>Thanks in advance</p>