I look at sql executed when I call SaveChanges in context, it updates, deletes and inserts sql stament in that order. Is there any way to change it to delete, update, insert?
The only way I can think of is to call first Delete(), then SaveChanges(), and then the rest Insert()and Update(). Not to say that this is the only way ...
Delete()
SaveChanges()
Insert()
Update()
There seems to be no way to reorder ... - DbContext SaveChanges Procedure for Executing Statements
SaveChanges , datacontex. , , , , .