public UnitOfWork(
     SmartGardenContext context,
     IRepository <User> userRepository,
     IIrigationSystemRepository irigationSystemRepository,
     ISensorRepository sensorRepository,
     ISystemStateRepository systemStateRepository,
     IBoardsKeysRepository boardsKeysRepository,
     IScheduleRepository scheduleRepository,
     IZoneRepository zoneRepository,
     ISensorPortRepository sensorPortRepository,
     IMeasurementRepository measurementRepository,
     IFCMTokenRepository fcmTokenRepository,
     IRepository <GlobalVegetables> globalVegetablesRepository,
     IUserVegetablesRepository userVegetablesRepository
     )
 {
     _context = context;
     UserGenericRepository      = userRepository;
     IrigationSystemRepository  = irigationSystemRepository;
     SensorRepository           = sensorRepository;
     SystemStateRepository      = systemStateRepository;
     BoardsKeyRepository        = boardsKeysRepository;
     ScheduleRepository         = scheduleRepository;
     ZoneRepository             = zoneRepository;
     SensorPortRepository       = sensorPortRepository;
     MeasurementRepository      = measurementRepository;
     FCMTokenRepository         = fcmTokenRepository;
     GlobalVegetablesRepository = globalVegetablesRepository;
     UserVegetablesRepository   = userVegetablesRepository;
 }
Beispiel #2
0
 public SensorPortRepository(SmartGardenContext context) : base(context)
 {
     _context = context;
 }
 public BoardsKeysRepository(SmartGardenContext context) : base(context)
 {
     _context = context;
 }
Beispiel #4
0
 public Repository(SmartGardenContext context)
 {
     _context = context;
     table    = _context.Set <T>();
 }
Beispiel #5
0
 public UserVegetablesRepository(SmartGardenContext context) : base(context)
 {
     _context = context;
 }
 public MeasurementRepository(SmartGardenContext context) : base(context)
 {
     _context = context;
 }
Beispiel #7
0
 public IrigationSystemRepository(SmartGardenContext context) : base(context)
 {
     _context = context;
 }
Beispiel #8
0
 public ScheduleRepository(SmartGardenContext context) : base(context)
 {
     _context = context;
 }
 public FCMTokenRepository(SmartGardenContext context) : base(context)
 {
     _context = context;
 }
 public SystemStateRepository(SmartGardenContext context) : base(context)
 {
     _context = context;
 }
 public ZoneRepository(SmartGardenContext context) : base(context)
 {
     _context = context;
 }