views:

39

answers:

1

How to list all registered users from a RIA Service?

I tried to expose they by using a IQueryable (from a Domain Class Service), but got the error "The entity type 'User' is exposed by multiple DomainService types." My first clue is that the user is already exposed, but found nothing in code and there is nothing related to 'User' in 'Data Sources' (from silverlight client project). My guess is the RIA already exposes the User object, but only the authenticated one... how to list all?

Thanks in advance,

A: 

When RIA services authenticates a user, it will need to check it against a database or external source. You'll need to create another domain service which can retrieve these users instead of using the Authenication Services. There isn't any inbuilt function to return all users because RIA servies simply doesn't know where the user database exists.

ForeverDebugging
Hello, thanks for the attention. Worked fine: created another service called 'MembershipService' that expose a 'UserInfo' type (linked to user).
Magus