2014-03-06 3 views
0

과수원 관리자 패널에 의해 생성 된 모든 사용자의 ID를 가져와야합니다. 이제 모든 목록이 필요하며 다른 서비스에서 사용하게됩니다.과수원에서 모든 사용자 목록을 얻는 방법

가 아니면, 내가 "[Orchard_Users_UserPartRecord]"이 코드와 같은 엔티티 프레임 워크에서 오차드 사용자 테이블을 얻고 싶은

public IList<UserAttendance> ShowAllUserAttendance()`enter code here` 
{ 
    using (UserAttendanceDbContext _db = new UserAttendanceDbContext()) 
    { 
     return _db.UserAttendances.ToList(); 
    } 
} 

내가 어떻게 할 수 있습니까?

감사합니다, kibria

답변

1

다음을 참조하십시오. 자세한 내용은

var userProfiles = _contentManager.Query<UserPart, UserPartRecord>() .List() .Select(user => ((dynamic) user).ProfilePart) .Select(user => new {user.FirstName, user.LastName});

은 링크를 방문하십시오. http://orchardprofile.codeplex.com/discussions/271879

+0

_contentManager 란 무엇이며 어떤 참조를 사용해야합니까? –

+0

orchardservices 콘텐츠 관리자 –