Τετάρτη, 7 Ιανουαρίου 2009 - Δημοσιεύσεις

The mystery of order of inserts in Entity Framework

I'm trying to figure out one thing for weeks but I can't! And maybe its the first time I cannot get a straight answer from MSDN forums (by the way MSDN forums have been revamped recently. Pretty nice result. Check it out!). Here is the scenario I have an instance of an ObjectContext of Entity Framework, I add 6 new objects of the same type using AddObject and then SaveChanges is executed: context.AddObject(New Person { Name = "1st" }); context.AddObject(New Person { Name = "2nd" }); context.AddObject(New Person

Διαβάστε περισσότερα »