This project has moved. For the latest updates, please go here.

Live data vs cached data

Sep 13, 2012 at 9:07 AM

Hi guys,

I have the following scenario: I want to somehow assign an "IsNew" flag to all the items that come from DataManager's Load() operation that does not already exist in cache. I am using a BatchObservableCollection as destination to Merge() the results of the Load() operation.

I have thought of adding the IsNew property to ModelItemBase and assign it to the apropriate value, inside the Merge() method, depending the EquivelentItemMergeBehavior enum, etc, but then I would have to do it again on every new version of the library. Is there any other elegant way of implementing this?