hommels wrote:
What is the equivalent code for Adapter model for
private EntityCollection _AppUserPrefs = new EntityCollection();
return _AppUserPrefs[index].PrefValue;
It says that PrefValue does not exist
_AppUserPrefs[index] needs to be cast to the entity you're looking for in order to gain typed access to the class members as the items are returned as IEntity2 objects. So:
private EntityCollection _AppUserPrefs = new EntityCollection();
return ((AppUserPrefsEntity)_AppUserPrefs[index]).PrefValue;
Hope that helps.
Jeff...