Using LINQ, when calling several deleteOnSubmit in a row then calling SubmitChanges:
DataContext.DeleteOnSubmit(itemFromTb1);
DataContext.DeleteOnSubmit(itemFromTb2);
DataContext.SubmitChanges();
Will they always be deleted in the order (itemFromTb1 then itemFromTb2) I called them or not necessarily?
Edit: I know the SubmitChanges() performs in the following order
- Insert
- Update
- Delete
But I'm not sure if each of those are performed in the order they were called.