Esempio n. 1
0
        public IEnumerable <StudySummary> Select(int startRowIndex, int maximumRows)
        {
            if (maximumRows == 0 || Partition == null)
            {
                return(new List <StudySummary>());
            }

            StudySelectCriteria criteria = GetSelectCriteria();

            IList <Study> studyList = _searchController.GetRangeStudies(criteria, startRowIndex, maximumRows);

            _list = new List <StudySummary>();

            foreach (Study study in studyList)
            {
                _list.Add(StudySummaryAssembler.CreateStudySummary(HttpContext.Current.GetSharedPersistentContext(), study));
            }

            if (StudyFoundSet != null)
            {
                StudyFoundSet(_list);
            }

            return(_list);
        }