public GenerateReportController(IConfiguration configuration)
        {
            string connectionString = configuration.GetConnectionString("DefaultConnection");

            _iMemberRetrieveContext = new MemberMySQLContext(connectionString);
            memberRetRepository     = new MemberRetRepository(_iMemberRetrieveContext);
        }
Beispiel #2
0
        public GenerateScheduleController(IConfiguration configuration)
        {
            string connectionString = configuration.GetConnectionString("DefaultConnection");

            _iShiftRetrieveContext = new ShiftMySQLContext(connectionString);
            shiftRetRepository     = new ShiftRetRepository(_iShiftRetrieveContext);

            _iMemberRetrieveContext = new MemberMySQLContext(connectionString);
            memberRetRepository     = new MemberRetRepository(_iMemberRetrieveContext);

            _ischeduldeSaveContext = new ScheduleMySQLContext(connectionString);
            scheduleSaveRepository = new ScheduleSaveRepository(_ischeduldeSaveContext);

            _ishiftSaveContext  = new ShiftMySQLContext(connectionString);
            shiftSaveRepository = new ShiftSaveRepository(_ishiftSaveContext);
        }
 public MemberRetRepository(iMemberRetrieveContext contextRet)
 {
     ContextRet = contextRet;
 }