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

            _context = context;
        }
예제 #3
0
        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);
        }
예제 #4
0
        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)
 {
 }
예제 #6
0
 public HeaderRecordRepository(IScheduleContext context) : base(context)
 {
 }
예제 #7
0
 public TiplocRecordRepository(IScheduleContext context) : base(context)
 {
 }
 public ScheduleLocationRecordRepository(IScheduleContext context) : base(context)
 {
 }