How to get all userlist from orchard?

Topics: General
Mar 5, 2014 at 8:13 AM
Edited Mar 5, 2014 at 8:45 AM
I need to get all of users with their Ids whose are created by orchard admin panel. Now I need all list and I will use it in another service.

Or, I want to get Orchard user table "[Orchard_Users_UserPartRecord]" from entity framework like this code

public IList<UserAttendance> ShowAllUserAttendance()
        using (UserAttendanceDbContext _db = new UserAttendanceDbContext())
            return _db.UserAttendances.ToList();
How can I do it?

Mar 5, 2014 at 4:21 PM
search this forum , i think there were at least 3 posts about this ago.
Mar 7, 2014 at 11:55 AM
Edited Mar 7, 2014 at 11:57 AM
Mar 8, 2014 at 1:14 AM
It's better if you use the content manager to query User content items (sample: You could probably even use Projector for that.