title: Finding differences between 2 dictionaries
body: <p>I have 2 dictionaries that contain employee information form 2 DB tables in SAP Business 1. They have employee IDs and salaries e.g. I have ensured that the employee IDs of the 1st and 2nd table will always be the same</p>
  
  <pre><code>Table 1 (OHEM)
  
  empID    salary
  1        40000
  2        56000
  3        77000
  4        80000 &lt;------increase  
  
  
  Table 2 (Salary Fitment)
  
  empID    salary
  1        40000
  2        56000
  3        77000
  4        50000
  </code></pre>
  
  <p>In the above example, if employee number 4 gets an increase/decrease (or any other employee salary change in OHEM), I would like to compare two dictionaries and then update
  the corresponding salary in table two.</p>
  
  <p>Code</p>
  
  <pre><code>// Get service instances
  var employeeService = Program.Kernel.Get&lt;IEmployeeService&gt;();
  var salaryFitmentService = Program.Kernel.Get&lt;ISalaryFitmentService&gt;(); 
  
  var OHEMDictionary = employeeService.GetAllEmployees().OrderBy(es =&gt; es.empID)
                                   .ToDictionary(od =&gt; od.empID,
                                                 od =&gt; od.salary);
  
  var SalaryFitmentDictionary = salaryFitmentService.GetAllSalaryFitments().Where(x =&gt; x.U_PD_Code.Trim().ToString() == "SYS001").OrderBy(es =&gt; es.U_Employee_ID)
                                            .ToDictionary(od =&gt; od.U_Employee_ID,
                                                                od =&gt; od.U_PD_Amount);
  </code></pre>
  
  <p>I already have an update code. What would be the best way to get the dictionary differences so that I could update the differences?</p>