Why doesn't my viewmodel properties get populated

Posted by Jakob on Stack Overflow See other posts from Stack Overflow or by Jakob
Published on 2010-06-10T11:37:06Z Indexed on 2010/06/10 12:23 UTC
Read the original article Hit count: 163

Filed under:
|
|
|

Hi. I've looked all over and I can't figure out why my viewmodel doesn't get populated.

I have this code:

Followers = new ObservableCollection<aspnet_User>(_followersRepo.aspnet_Users);
_followersRepo.Load(_followersRepo.GetUsersFollowingIDQuery(CurrentUserId));

Following = new ObservableCollection<aspnet_User>(_followingRepo.aspnet_Users);
 _followingRepo.Load(_followingRepo.GetUsersFollowedByIDQuery(CurrentUserId));

CurrentUser = _fullUserRepo.FullUsers.SingleOrDefault();
_fullUserRepo.Load(_fullUserRepo.GetFullUserByIDQuery(CurrentUserId));

But when I debug, there is no data loaded to the Followers, Following and CurrentUser objects. I know that data should be returned because I'm trying to implement the MVVM pattern in my app, and haven't changed the domainservice. Also I can se debugging the CurrentUserId has a value.

© Stack Overflow or respective owner

Related posts about c#

Related posts about Silverlight