Example #1
0
 public SDTMloader(IServiceUoW uoW)
 {
     _dataServiceUnit    = uoW;
     _datasetRepository  = uoW.GetRepository <Dataset, int>();
     _dataFileRepository = uoW.GetRepository <DataFile, int>();
     _sdtmRepository     = uoW.GetRepository <SdtmRow, Guid>();
 }
Example #2
0
 public SubjectService(IServiceUoW uoW)
 {
     _dataContext                 = uoW;
     _subjectRepository           = uoW.GetRepository <HumanSubject, string>();
     _studtRepository             = uoW.GetRepository <Study, int>();
     _characteristicObjRepository = uoW.GetRepository <CharacteristicFeature, int>();
 }
Example #3
0
 public CheckoutService(IServiceUoW uoW, QueryService queryService)
 {
     _dataContext             = uoW;
     _combinedQueryRepository = uoW.GetRepository <CombinedQuery, Guid>();
     _userDatasetRepository   = uoW.GetRepository <UserDataset, Guid>();
     _queryService            = queryService;
 }
Example #4
0
 public HDloader(IServiceUoW uoW)
 {
     _dataContext           = uoW;
     _datasetRepository     = uoW.GetRepository <Dataset, int>();
     _dataFileRepository    = uoW.GetRepository <DataFile, int>();
     _observationRepository = uoW.GetRepository <Observation, Guid>();
 }
Example #5
0
 public AssayService(IServiceUoW uoW, DatasetService datasetService)
 {
     _dataContext         = uoW;
     _bioSampleRepository = uoW.GetRepository <Biosample, int>();
     _projectRepository   = uoW.GetRepository <Project, int>();
     _assayRepository     = uoW.GetRepository <Assay, int>();
     _datasetService      = datasetService;
 }
 public CheckoutService(IServiceUoW uoW, QueryService queryService)
 {
     _dataContext               = uoW;
     _combinedQueryRepository   = uoW.GetRepository <CombinedQuery, Guid>();
     _exportFileRepository      = uoW.GetRepository <ExportFile, Guid>();
     _analysisDatasetRepository = uoW.GetRepository <AnalysisDataset, Guid>();
     _queryService              = queryService;
 }
Example #7
0
 public BioSampleService(IServiceUoW uoW)
 {
     _dataContext                 = uoW;
     _bioSampleRepository         = uoW.GetRepository <Biosample, int>();
     _datasetRepository           = uoW.GetRepository <Dataset, int>();
     _studyRepository             = uoW.GetRepository <Study, int>();
     _characteristicObjRepository = uoW.GetRepository <CharacteristicFeature, int>();
 }
Example #8
0
 public DbInitializer(IServiceUoW uoW, IOptions <DataAccessSettings> settings)
 {
     _db = uoW;
     _desriptorRepository = uoW.GetRepository <DatasetTemplate, string>();
     _dictRepository      = uoW.GetRepository <Dictionary, string>();
     _ConfigSettings      = settings.Value;
     _JSONDir             = _ConfigSettings.DBinitDirectory;
     Directory.CreateDirectory(_JSONDir);
 }
Example #9
0
 public DataMatrixLoader(IServiceUoW uoW, FileService fileService)
 {
     _dataContext           = uoW;
     _observationRepository = uoW.GetRepository <Observation, Guid>();
     _biosampleRepository   = uoW.GetRepository <Biosample, int>();
     _dataFileRepository    = uoW.GetRepository <DataFile, int>();
     _datasetRepository     = uoW.GetRepository <Dataset, int>();
     _fileService           = fileService;
 }
 public DatasetService(IServiceUoW uoW, CacheService cacheService)
 {
     _dataServiceUnit              = uoW;
     _datasetRepository            = uoW.GetRepository <Dataset, int>();
     _dataFileRepository           = uoW.GetRepository <DataFile, int>();
     _observationRepository        = uoW.GetRepository <Observation, int>();
     _sdtmRepository               = uoW.GetRepository <SdtmRow, Guid>();
     _variableDefinitionRepository = uoW.GetRepository <VariableDefinition, int>();
     _cacheService = cacheService;
 }
Example #11
0
        public FileService(IServiceUoW uoW, IOptions <FileStorageSettings> settings)
        {
            _dataServiceUnit   = uoW;
            _fileRepository    = uoW.GetRepository <DataFile, int>();
            _projectRepository = uoW.GetRepository <Project, int>();
            _datasetRepository = uoW.GetRepository <Dataset, int>();

            ConfigSettings         = settings.Value;
            _uploadFileDirectory   = ConfigSettings.UploadFileDirectory;
            _downloadFileDirectory = ConfigSettings.DownloadFileDirectory;
            _observationRepository = uoW.GetRepository <Observation, int>();
        }
Example #12
0
        public void LoadDictionaries()
        {
            var reader = File.OpenText(Path.Combine(_JSONDir, _termsJSONfilename));

            List <Dictionary> dicts = JsonConvert.DeserializeObject <List <Dictionary> >(reader.ReadToEnd());

            _dictRepository = _db.GetRepository <Dictionary, string>();
            _dictRepository.InsertMany(dicts);

            _db.Save();
            reader.Dispose();
        }
Example #13
0
        //MongoDB Repositories
        //private IRepository<HumanSubject, string> subjectRepository;

        //private IRepository<Study, int> _studyRepository;


        public ObservationService(IServiceUoW uoW)
        {
            _dataContext = uoW;
            //_activityRepository = uoW.GetRepository<Activity, int>();
            _ObservationRepository = uoW.GetRepository <Observation, int>();
            //_datasetRepository = uoW.GetRepository<Dataset, int>();

            //_variableRepository = uoW.GetRepository<VariableDefinition, int>();
            //subjectRepository = uoW.GetRepository<HumanSubject, string>();

            //_studyRepository = uoW.GetRepository<Study, int>();
            //_O3Repository = uoW.GetRepository<ObjectOfObservation, int>();
            //_ObsDescriptionRepository = uoW.GetRepository<ObservationDescriptor, int>();
            //_ObsDescriptorRepository = uoW.GetRepository<PropertyDescriptor, int>();
            _sdtmRepository = uoW.GetRepository <SdtmRow, Guid>();
        }
 public ExportService(IServiceUoW uoW, QueryService queryService, IOptions <FileStorageSettings> settings)
 {
     _exportFileRepository  = uoW.GetRepository <ExportFile, Guid>();
     _queryService          = queryService;
     _dataServiceUnit       = uoW;
     ConfigSettings         = settings.Value;
     _downloadFileDirectory = ConfigSettings.DownloadFileDirectory;
 }
Example #15
0
 public ProjectService(IServiceUoW uoW)
 {
     this.uoW                 = uoW;
     _projectRepository       = uoW.GetRepository <Project, int>();
     _userDatasetRepository   = uoW.GetRepository <UserDataset, Guid>();
     _activityRepository      = uoW.GetRepository <Activity, int>();
     _assayRepository         = uoW.GetRepository <Assay, int>();
     _combinedQueryRepository = uoW.GetRepository <CombinedQuery, Guid>();
     _sdtmRepository          = uoW.GetRepository <SdtmRow, Guid>();
 }
Example #16
0
        public BioSampleLoader(IServiceUoW uoW)
        {
            _dataContext         = uoW;
            _bioSampleRepository = uoW.GetRepository <Biosample, int>();
            _subjectRepository   = uoW.GetRepository <HumanSubject, string>();
            _studyRepository     = uoW.GetRepository <Study, int>();
            _assayRepository     = uoW.GetRepository <Assay, int>();
            _sdtmRepository      = uoW.GetRepository <SdtmRow, Guid>();


            _characteristicObjRepository = uoW.GetRepository <CharacteristicFeature, int>();
        }
Example #17
0
 public CVtermService(IServiceUoW uoW)
 {
     _CVrepository = uoW.GetRepository <CVterm, string>();
 }
Example #18
0
 public UserDatasetService(IServiceUoW uoW)
 {
     _unitOfWork            = uoW;
     _userDatasetRepository = uoW.GetRepository <UserDataset, Guid>();
     _projectRepository     = uoW.GetRepository <Project, int>();
 }
 public TemplateService(IServiceUoW uoW)
 {
     _dataServiceUnit    = uoW;
     _templateRepository = uoW.GetRepository <DatasetTemplate, string>();
 }
Example #20
0
 public StudyService(IServiceUoW uoW)
 {
     _studyServiceUnit  = uoW;
     _studyRepository   = _studyServiceUnit.GetRepository <Study, int>();
     _projectRepository = uoW.GetRepository <Project, int>();
 }
Example #21
0
 public ObservationLoader(IServiceUoW uoW)
 {
     _dataContext           = uoW;
     _observationRepository = uoW.GetRepository <Observation, int>();
     _sdtmRepository        = uoW.GetRepository <SdtmRow, Guid>();
 }
Example #22
0
 public QueryService(IServiceUoW uoW)
 {
     _combinedQueryRepository         = uoW.GetRepository <CombinedQuery, Guid>();
     _subjectRepository               = uoW.GetRepository <HumanSubject, string>();
     _subjectCharacteristicRepository = uoW.GetRepository <SubjectCharacteristic, int>();
     _sampleCharacteristicRepository  = uoW.GetRepository <SampleCharacteristic, int>();
     _armRepository         = uoW.GetRepository <Arm, string>();
     _studyRepository       = uoW.GetRepository <Study, int>();
     _visitRepository       = uoW.GetRepository <Visit, int>();
     _sdtmRepository        = uoW.GetRepository <SdtmRow, Guid>();
     _biosampleRepository   = uoW.GetRepository <Biosample, int>();
     _assayRepository       = uoW.GetRepository <Assay, int>();
     _observationRepository = uoW.GetRepository <Observation, Guid>();
 }
Example #23
0
 public ActivityService(IServiceUoW uoW, DatasetService datasetService)
 {
     _activityServiceUnit = uoW;
     _activityRepository  = uoW.GetRepository <Activity, int>();
     _datasetService      = datasetService;
 }
Example #24
0
 public AnalysisDatasetService(IServiceUoW uoW)
 {
     _unitOfWork = uoW;
     _analysisDatasetRepository = uoW.GetRepository <AnalysisDataset, Guid>();
     _exportFileRepository      = uoW.GetRepository <ExportFile, Guid>();
 }
 public DatasetDescriptorService(IServiceUoW uoW, CacheService cacheService)
 {
     _dataServiceUnit              = uoW;
     _datasetRepository            = uoW.GetRepository <Dataset, int>();
     _variableDefinitionRepository = uoW.GetRepository <VariableDefinition, int>();
 }