Hi Guys,
I know from a previous thread that
AddForDelete only works on non-new entities. New entities are ignored by default. So you can't 'fix' a mistake in the UnitOfWork object handling using that method.
. Is there any way to get the UOW to delete those entities without having to burden the DB with a fetch of something that will be deleted anyhow?
unitOfWork2.AddForDelete(new SomethingXSomeotherthing(key,key));
In the system the UOW is manipulated at the client control layer(ui on top of that). When we save the entity both the UOW and entity is passed to the business layer via remoting. I really want to avoid having the CCL access the BML just to update the UOW. I can of course pass the list of entities to be deleted to the BML, fetch them and then add them to the UOW but it will become messy and defeat the nice clean save that will take an entity and UOW to update something.
Anything I've missed or will I just have to work around it?
Thanks.