예제 #1
0
        /*
         * Dependency injection of IotContext.
         * Injected automatically when services.AddDbContext<IoTContext> is called in Startup.cs
         */
        public IoTController(IoTContext context)
        {
            _context = context;
            _context.Database.SetCommandTimeout(180);

            InitializeEFContext();
        }
예제 #2
0
 public CycleTimeRepository(IoTContext context) : base(context)
 {
     _context = context;
 }
예제 #3
0
 public RawDataRepository(IoTContext context, IMapper mapper) : base(context)
 {
     _context = context;
     _mapper  = mapper;
 }
예제 #4
0
 public MixingRepository(IoTContext context) : base(context)
 {
     _context = context;
 }
예제 #5
0
 public TelemetryController(IoTContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }