Esempio n. 1
0
 public DeviceDBApiController(IUserProfileService userProfile,
                              IDeviceDBService deviceServiceDB,
                              INotificationHubRepository notificationHubRepo,
                              ILogger <DeviceDBApiController> logger)
     : base(userProfile)
 {
     _deviceServiceDB     = deviceServiceDB;
     _notificationHubRepo = notificationHubRepo;
     this.logger          = logger;
 }
 public GroupsCosmosDBApiController(IUserProfileService userProfile,
                                    ICosmosDBRepository <CustomGroupModel> groupsRepo,
                                    IDeviceDBService deviceServiceDB,
                                    ILogger <GroupsCosmosDBApiController> logger)
     : base(userProfile)
 {
     _GroupsRepo      = groupsRepo;
     _DeviceServiceDB = deviceServiceDB;
     this.logger      = logger;
 }
Esempio n. 3
0
 public static void  Create8036DBService(IDeviceDBService <DeviceInfo8036> service)
 {
 }
 public QuartzRefreshDBJob(IDeviceDBService deviceDBService, ILogger <QuartzRefreshDBJob> logger)
 {
     _DeviceDBService = deviceDBService;
     _LoggerJob       = logger;
 }
Esempio n. 5
0
        //未测试
        public bool SaveLoops(List <Model.LoopModel> lstLoopModel, ILoopDBService loopDBService, IDeviceDBService <DeviceInfo8036> deviceDBService)
        {
            try
            {
                //INSERT INTO "DeviceInfo8036" ("ID", "Code", "Disabled", "LinkageGroup1", "LinkageGroup2", "AlertValue", "ForcastValue", "DelayValue", "BuildingNo", "ZoneNo", "FloorNo", "RoomNo", "Location", "LoopID", "TypeID", "ROWID") VALUES (4, '00101004', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 9, 4);
                //创建器件
                loopDBService.AddLoopInfo(lstLoopModel);

                deviceDBService.CreateTableStructure();

                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }