Exemple #1
0
        public IList <ArchiveStudyStorage> GetArchiveStudyStorage(IPersistenceContext read, ServerEntityKey studyStorageKey)
        {
            Platform.CheckForNullReference(studyStorageKey, "studyStorageKey");

            ArchiveStudyStorageAdaptor        adaptor = new ArchiveStudyStorageAdaptor();
            ArchiveStudyStorageSelectCriteria archiveStudyStorageCriteria = new ArchiveStudyStorageSelectCriteria();

            archiveStudyStorageCriteria.StudyStorageKey.EqualTo(studyStorageKey);
            archiveStudyStorageCriteria.ArchiveTime.SortDesc(0);

            return(adaptor.Get(read, archiveStudyStorageCriteria));
        }
Exemple #2
0
        public IList <ArchiveStudyStorage> GetArchiveStudyStorage(Study study)
        {
            Platform.CheckForNullReference(study, "Study");

            ArchiveStudyStorageAdaptor        adaptor = new ArchiveStudyStorageAdaptor();
            ArchiveStudyStorageSelectCriteria archiveStudyStorageCriteria = new ArchiveStudyStorageSelectCriteria();

            archiveStudyStorageCriteria.StudyStorageKey.EqualTo(study.StudyStorageKey);
            archiveStudyStorageCriteria.ArchiveTime.SortDesc(0);

            return(adaptor.Get(archiveStudyStorageCriteria));
        }
		public IList<ArchiveStudyStorage> GetArchiveStudyStorage(IPersistenceContext read, ServerEntityKey studyStorageKey)
        {
            Platform.CheckForNullReference(studyStorageKey, "studyStorageKey");

            ArchiveStudyStorageAdaptor adaptor = new ArchiveStudyStorageAdaptor();
            ArchiveStudyStorageSelectCriteria archiveStudyStorageCriteria = new ArchiveStudyStorageSelectCriteria();
            archiveStudyStorageCriteria.StudyStorageKey.EqualTo(studyStorageKey);
        	archiveStudyStorageCriteria.ArchiveTime.SortDesc(0);

            return adaptor.Get(read, archiveStudyStorageCriteria);
        }
        public IList<ArchiveStudyStorage> GetArchiveStudyStorage(Study study)
        {
        	Platform.CheckForNullReference(study, "Study");

        	ArchiveStudyStorageAdaptor adaptor = new ArchiveStudyStorageAdaptor();
        	ArchiveStudyStorageSelectCriteria archiveStudyStorageCriteria = new ArchiveStudyStorageSelectCriteria();
        	archiveStudyStorageCriteria.StudyStorageKey.EqualTo(study.StudyStorageKey);
        	archiveStudyStorageCriteria.ArchiveTime.SortDesc(0);

        	return adaptor.Get(archiveStudyStorageCriteria);
        }