/* * 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(); }
public CycleTimeRepository(IoTContext context) : base(context) { _context = context; }
public RawDataRepository(IoTContext context, IMapper mapper) : base(context) { _context = context; _mapper = mapper; }
public MixingRepository(IoTContext context) : base(context) { _context = context; }
public TelemetryController(IoTContext context, IMapper mapper) { _context = context; _mapper = mapper; }