コード例 #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
ファイル: RawDataRepository.cs プロジェクト: sarutobi1245/IRS
 public RawDataRepository(IoTContext context, IMapper mapper) : base(context)
 {
     _context = context;
     _mapper  = mapper;
 }
コード例 #4
0
ファイル: MixingRepository.cs プロジェクト: SyPham/DMRS
 public MixingRepository(IoTContext context) : base(context)
 {
     _context = context;
 }
コード例 #5
0
 public TelemetryController(IoTContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }