is there a way to cache the delete of an entity and then delete it from the collection on a save or something?
this is hard to describe, but basically what we have in our app are parent child forms.
the child entities are in an llbl gen collection on the parent. we use self service.
the user will go and enter a parent and a few child records and save them. at this point everything is ok. the user then decides to delete a child record which i immediately remove from the database using the standard entity.delete. at this point, on some forms, the data now violates business rules. Something like the child record amounts have to add up to the amount on the parent etc. the user can exit the app/close the screen etc, and we have bad data in the db now.
what i want to do is just mark the entity some how, or remove it from the llbl gen collection and then when the user actually saves the screen (IE all validations have passed because they fixed the other child records to match the total now) do the save and delete at the same time.
If i were using EF, i'd flag the child entity for removal out of it's EF collection and then change/add new records etc and none of it would happen until i call savechanges on the context. how do i accomplish this in llbl gen?
Thanks!