When one is using ADO.NET Data Services and consuming it via the Linq to REST (formerly Project Astoria), it doesn t seem to be as intuitive as it could be.
Namely, with normal Linq to SQL, the DataContext monitors objects and tracks changes, so a simple SubmitChanges()
call will actually submit all my changes.
But with Linq to REST, I have to call UpdateObject(entity)
in order to notify the DataContext that the entity is dirty.
What s the point in this? Or am I missing something? Why not just have the autogenerated classes implement INotifyPropertyChanged and track changes like Linq to SQL?