I am trying to use the UnitOfWork, and am having difficulties in deletions that are added to the UnitOfWork.
My problem is that I am adding a collection of Entities that I want deleted, but for these items to be deleted a single Entity that is in the UnitOfWork needs to be deleted first, otherwise the database will lose integrity. I have the neccessary data structure in the database so the delete fails.
Is there anyway that the order of deletions can be set?