Hi,
Why can I not create an entity instance, mark it for deletion, add it to a collection and call adapter.SaveEntityCollection and have it deleted whilst other entities in the collection are updated or inserted?
Cheers, Ian.
You can do that. But we have created a special type of collection for this kind of scenario. We call it a Unit Of Work.
Please check the LLBLGen Pro manual: "Using the generated code -> SelfServicing/Adapter -> Unit of work and field data versioning"
add the entity to a UnitOfWork2 object instead of a collection.
UnitOfWork2 uow = new UnitOfWork2; uow.AddEntityToDelete(myEntity); uow.AddEntityCollectionToSave(myEntityCollection); uow.Commit(adapter, true);
OK Thanks.