Exemplo n.º 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();
        }
Exemplo n.º 2
0
 public CycleTimeRepository(IoTContext context) : base(context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public RawDataRepository(IoTContext context, IMapper mapper) : base(context)
 {
     _context = context;
     _mapper  = mapper;
 }
Exemplo n.º 4
0
 public MixingRepository(IoTContext context) : base(context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public TelemetryController(IoTContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }