Hi
I was using the unitofwork collection when saving some parent/child entities and it works really, really well.
I did have to change the sequence of processing due to uniqueness constraints, which would cause the commit to fail if they weren't removed first
i.e. via:
List<UnitOfWorkBlockType> newCommitOrder = new List<UnitOfWorkBlockType>();
newCommitOrder.Add(UnitOfWorkBlockType.Deletes);
newCommitOrder.Add(UnitOfWorkBlockType.Inserts);
newCommitOrder.Add(UnitOfWorkBlockType.Updates);
I was wondering why this sequence isn't the "default" behaviour, as it seems to make more sense, to me anyway i.e. delete first, then insert or update as appropriate?
As always, thanks for this great product!
James