title: Entity Framework not saving changes
body: <p>I've got an MVC web application that uses SQL Server 2008 as a back end database along with the Entity Framework. The application is working fine and pulling data from the database just fine. My problem is, when it does an update to the data, it doesn't appear to be saving it. I am using the follow function:</p>
  
  <pre><code>    public void SaveProduct(Product product)
      {
          if (product.ProductID == 0)
          {
              context.Products.Add(product);
          }
  
          context.SaveChanges(); // Breakpoint here
      }
  </code></pre>
  
  <p>This function is defined in my repository code. I set a breakpoint on the line commented above and the application is breaking at the line, so I know its hitting that line and the changes are all good in the context object. No error occurs, EF simply isn't saving the changes for some reason.</p>
  
  <p>I believe my connection string is correct, since its pulling the data just fine, but here it is just in case:</p>
  
  <pre><code>&lt;connectionStrings&gt;
      &lt;add name="EFDbContext" connectionString="Data Source=localhost;Initial Catalog=WarehouseStore;Integrated Security=True;Pooling=False" providerName="System.Data.SqlClient"/&gt;
  &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>Anyone have any ideas on what could cause this?</p>