Retrieving extra Profile data

Mar 22, 2013 at 6:28 AM
Hi,

Thanks for the excellent project.

I have used your example for saving extra data to the user profile but am having trouble retrieving the data.

I have put example code into the register action of a default MVC site and it saves the extra data with no problems. I then use the following code to fetch a SampleUserProfile instance:

SampleUserProfile p = service.GetProfileByUserName(model.UserName);

This returns an instance with nulls for each of the fields. If I change this to use GetAllProfiles I get two results, the first with empty values and the second with the correct values. It appears that because the details are stored in the same collection that there are (correctly) two matches for the UserName specified in the filter criteria however, in this situation we only want one (the actual Profile row) and disregard the User row.

Do you know what I can do to work around this problem?

Cheers
Stuart
Mar 24, 2013 at 9:48 AM
Thanks Stuart,

Can you give me more code so i can identify problem. Cause now i am confuse what can be wrong.

Regards,
Dmitriy.