title: Entity Framework Update Problem
body: <p>I am using Entity Framework &amp; LINQ to retrieve data. I am having a problem with the following:</p>
  
  <pre><code>var customer= db.customers.where(c=&gt;c.id==1);
  customer.name=santhosh;
  customer.city=hyd;
  </code></pre>
  
  <p>The fields are changing in the database before I call:</p>
  
  <pre><code>db.SaveChanges();
  </code></pre>
  
  <p>How do I avoid this?</p>