How to get all userlist from orchard?

Topics: General
Mar 5, 2014 at 9:13 AM
Edited Mar 5, 2014 at 9:45 AM
Hi,
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?

Thanks,
kibria
Mar 5, 2014 at 5:21 PM
search this forum , i think there were at least 3 posts about this ago.
Mar 7, 2014 at 12:55 PM
Edited Mar 7, 2014 at 12:57 PM
n
Developer
Mar 8, 2014 at 2:14 AM
It's better if you use the content manager to query User content items (sample: https://orchardtrainingdemo.codeplex.com/SourceControl/latest#Controllers/ContentsAdminController.cs). You could probably even use Projector for that.