title: Linq to Entity AcceptAllChanges SaveChanges
body: <p>What is the difference between the following:</p>
  
  <pre><code>        db.AcceptAllChanges();
          // vs
          db.SaveChanges();
  
          db.AddToCustomer()
          // vs
          db.Customers.AddObject(Mycustomer);
  </code></pre>
  
  <p>and why there is <code>db.Customers.DeleteObject(Mycustomer);</code>  and no <code>db.DeleteFromCustomer(Mycustomer);</code></p>
  
  <p>when should i use each one ? </p>
  
  <p>also is entity framework threadsafe ? i mean if two threads update the object in the context sametime would it crash ?</p>
  
  <p>thanks in advance</p>