Qual è la differenza tra i seguenti:LINQ to entità AcceptAllChanges SaveChanges
db.AcceptAllChanges();
// vs
db.SaveChanges();
db.AddToCustomer()
// vs
db.Customers.AddObject(Mycustomer);
e perché non v'è db.Customers.DeleteObject(Mycustomer);
e nessun db.DeleteFromCustomer(Mycustomer);
quando dovrei usare ciascuno di essi?
è anche il framework di entità thread-safe? Voglio dire se due thread aggiornano l'oggetto nel contesto in cui sametime si arresterebbe?
grazie in anticipo
AddObject è fortemente tipizzato come bene perché è il metodo di tipo generico ObjectSet - in questo scenario ObjectSet e definiton del metodo è AddObject (entità Customer). –