No there is no delete restriction in our code, just a simple EntityCollection to delete
If we add a single entity to the list that does not exist in db a ORMConcurrencyException is thrown.
Here is the code we are using .
EntityCollection<CommonEntityBase> saveList = new EntityCollection<CommonEntityBase>();
saveList = AxxConverter.GetSaveList(a, saveList, Guid.Empty, "A");
EntityCollection<CommonEntityBase> deleteList = new EntityCollection<CommonEntityBase>();
deleteList = AxxConverter.GetDeleteList(a, deleteList, "A");
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
UnitOfWork2 uow = new UnitOfWork2();
uow.AddCollectionForSave(saveList);
uow.AddCollectionForDelete(deleteList);
int numberChanged = uow.Commit(adapter);
} // using
br
Thorri