コード例 #1
0
        public long Count(UserEntity UserEntity, SearchLecturerFollowEntity SearchLecturerFollowEntity)
        {
            if (SearchLecturerFollowEntity == null)
            {
                SearchLecturerFollowEntity = new SearchLecturerFollowEntity();
            }
            IQueryable <LecturerFollow> Lecturers = IMSContext.LecturerFollows;

            Lecturers = SearchLecturerFollowEntity.ApplyTo(Lecturers);
            return(Lecturers.Count());
        }
コード例 #2
0
        public List <LecturerFollowEntity> Get(UserEntity UserEntity, SearchLecturerFollowEntity SearchLecturerFollowEntity)
        {
            if (SearchLecturerFollowEntity == null)
            {
                SearchLecturerFollowEntity = new SearchLecturerFollowEntity();
            }
            IQueryable <LecturerFollow> Lecturers = IMSContext.LecturerFollows
                                                    .Include(s => s.Student)
                                                    .Include(s => s.Lecturer);

            Lecturers = SearchLecturerFollowEntity.ApplyTo(Lecturers);
            Lecturers = SearchLecturerFollowEntity.SkipAndTake(Lecturers);
            return(Lecturers.ToList().Select(u => new LecturerFollowEntity(u)).ToList());
        }
コード例 #3
0
 public List <LecturerFollowEntity> Get(SearchLecturerFollowEntity SearchLecturerFollowEntity)
 {
     return(LecturerFollowService.Get(UserEntity, SearchLecturerFollowEntity));
 }
コード例 #4
0
 public long Count(SearchLecturerFollowEntity SearchLecturerFollowEntity)
 {
     return(LecturerFollowService.Count(UserEntity, SearchLecturerFollowEntity));
 }