예제 #1
0
        public OracleRepository(string connectionString)
        {
            OracleInsightDbProvider.RegisterProvider();
            db = new OracleConnectionStringBuilder(connectionString);

            searchRepository = new SearchRepository(db);
            historyRepository = new AccessHistoryRepository(db);
            dashboardRepository = new DashboardRepository(db);
        }
예제 #2
0
 public AccountController(IUserService userService,
                          IApplicationSignInManager signManager,
                          IMapper mapper,
                          IConfiguration configuration,
                          IAccessHistoryRepository historyRepository)
 {
     _userService       = userService;
     _signManager       = signManager;
     _mapper            = mapper;
     _configuration     = configuration;
     _historyRepository = historyRepository;
 }
예제 #3
0
 public Repository()
 {
     OracleInsightDbProvider.RegisterProvider();
     string connectionString = "User Id=RMS_GUEST;Password=RMS_GUEST;Data Source=lxrmsdevdb1.beckman.com:1521/RMSDVA";
     this.db = new OracleConnectionStringBuilder(connectionString);
     this.instrumentInfoRepository = new InstrumentInfoRepository(this.db);
     this.instrumentRepository = new InstrumentRepository(this.db);
     this.accessHistoryRepository = new AccessHistoryRepository(this.db);
     this.eventRepository = new EventRepository(this.db);
     this.performanceDetailsRepository = new PerformanceDetailsRepository(this.db);
     this.systemStatusRepository = new SystemStatusRepository(this.db);
     this.instrumentAccessHistoryRepository = new InstrumentAccessHistoryRepository(this.db);
 }
예제 #4
0
 public AccessHistoryService(IAccessHistoryRepository repository,
                             IUnitOfWork unitOfWork,
                             IValidator <AccessHistory> validator) : base(repository, unitOfWork, validator)
 {
     _accessHistoryRepository = repository;
 }
 public AccessHistoryService(IAccessHistoryRepository repository)
 {
     this.repository = repository;
 }