Entity Framework - sql order generated by Savechanges ()

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?

+5
source share
2 answers

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 ...

There seems to be no way to reorder ... - DbContext SaveChanges Procedure for Executing Statements

+2
source

SaveChanges , datacontex. , , , , .

-3

All Articles