コード例 #1
0
ファイル: PlantController.cs プロジェクト: amtisian/farm_bot
        public PlantController(FarmBotDbContext farmBotDbContext
                               , IHubContext <CommunicationHub, ICommunicationHub> communicationHubContext)
        {
            _farmBotDbContext = farmBotDbContext;

            _plantRepository = new Repository <Plant>(_farmBotDbContext);

            _communicationHubContext = communicationHubContext;
        }
コード例 #2
0
        public ParametersController(FarmBotDbContext farmBotDbContext)
        {
            _farmBotDbContext = farmBotDbContext;

            _parametersRepository = new Repository <Parameters>(_farmBotDbContext);
        }
コード例 #3
0
        public EventController(FarmBotDbContext farmBotDbContext)
        {
            _farmBotDbContext = farmBotDbContext;

            _eventRepository = new Repository <Event>(_farmBotDbContext);
        }
コード例 #4
0
        public FarmBotPlantsController(FarmBotDbContext farmBotDbContext)
        {
            _farmBotDbContext = farmBotDbContext;

            _farmBotPlantsRepository = new Repository<FarmBotPlant>(_farmBotDbContext);
        }