title: LINQ to Entities Update Record
body: <p>I am new to using LINQ with Entities i have the following which i am trying to run a update on.</p>
  
  <pre><code> OEEPumaDBEntities PumaOEEModel = new OEEPumaDBEntities();
   Parameter1 parameter = new Parameter1();
   parameter.ProductionWarning = int.Parse(txtProductionWarning.Text);
   parameter.ProductionDistress = int.Parse(txtProductionDistress.Text);
   parameter.ShiftStart = cmbShiftStart.Text;
  
   try
   {
       PumaOEEModel.SaveChanges();
  
   }
   catch
   {
       throw new Exception("Could not save changes.");  
   }
  </code></pre>
  
  <p>When i run the code it debugs fine and does not catch any errors. But when i check the SQL db it has not updated the record with the new data. I have changed the code and can add new row but for some reason i cant update the record. Can anyone see any issues with the above code and advice on how i could change this?</p>