Hello,
I'm using a UnitOfWork to delete all records in a Table and then Inserting new Records.
I do it this way:
// 1. Deleting all
ProjectEntity project = new ProjectEntity("0815");
uow.AddDeleteMultiCall(project.CustomerProject, new PredicateExpression(CustomerProjectFields.ProjectId == project.ProjectId));
//2. Inserting new one
CustomerProjectEntity customerProject = project.CustomerProject.AddNew();
customerProject.Project = project; //= ProjectEntity
customerProject.Customer = customer; //= CustomerEntity
uow.AddForSave(customerProject);
Unfortunately UOW first do INSERT then DELETE, so all new inserted Records will be deleted the next second an my Table/Collection always is empty.
Is it possible to tell UOW to do first all DELETE-Statements and then INSERTING/UPDATE ?
Thank's for your help,
Alex