Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Deleting entities using the generic approach

Example 4-17 Testing the new SaveDestinationTest method

var secondLodging = canyon.Lodgings.Last();
secondLodging.State = State.Deleted;

In this example you are setting secondLodging state to Deleted but in reality I would also remove it from the Lodgings collection which means there is nothing to send to the server. Have I missed how this situation is handled or have you forgotten to pass a list of deleted items? Obviously having to pass a separate list of deleted items is very undesirable.
1 person has
this question