public ScheduleLogic(IScheduleContext Context, IEmployeeContext employeeContext, IShiftContext shiftContext, IAvailabilityContext availabilityContext)
 {
     _Context             = Context;
     _employeeContext     = employeeContext;
     _shiftContext        = shiftContext;
     _availabilityContext = availabilityContext;
 }
        protected BaseRepository(IScheduleContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            _context = context;
        }
        public ScheduleUnitOfWork(IScheduleContext context)
        {
            if (context == null)
                throw new ArgumentNullException(nameof(context));

            _context = context;

            HeaderRecords = new HeaderRecordRepository(_context);
            TiplocRecords = new TiplocRecordRepository(_context);
            AssociationRecords = new AssociationRecordRepository(_context);
            ScheduleRecords = new ScheduleRecordRepository(_context);
            ScheduleLocationRecords = new ScheduleLocationRecordRepository(_context);
        }
        public ScheduleUnitOfWork(IScheduleContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            _context = context;

            HeaderRecords           = new HeaderRecordRepository(_context);
            TiplocRecords           = new TiplocRecordRepository(_context);
            AssociationRecords      = new AssociationRecordRepository(_context);
            ScheduleRecords         = new ScheduleRecordRepository(_context);
            ScheduleLocationRecords = new ScheduleLocationRecordRepository(_context);
        }
 public AssociationRecordRepository(IScheduleContext context) : base(context)
 {
 }
Exemple #6
0
 public HeaderRecordRepository(IScheduleContext context) : base(context)
 {
 }
Exemple #7
0
 public TiplocRecordRepository(IScheduleContext context) : base(context)
 {
 }
 public ScheduleLocationRecordRepository(IScheduleContext context) : base(context)
 {
 }