Otis wrote:
You can use a unitofwork for that: add all entities to remove to that unitofwork object using AddForDelete() and add the collection with the entities to add as AddCollectionForSave(), then commit the unitofwork.
I was looking at the documentation for the UnitOfWork2, and to be honest I'm not seeing how it applies to my current situation. Since the checkboxlist contains pk values for SpecialStatusEntities, I merely want to be able to call appEntity.SpecialStatusCollection.Remove(pk) or something like that.
The problem is, I think, that if a checkbox is selected, I have to first check if that particular status is already associated with the appEntity. If it is not, then I add it. The same goes with the unchecked items; if they exist then I remove them, otherwise I do nothing.