public DBPartaker(cls_DB_Info DB) { this.serial_id = DB.serial_id; this.gateway_id = DB.gateway_id; this.device_id = DB.device_id; this.enable = DB.enable; this.db_type = DB.db_type; this.connection_string = DB.connection_string; }
public void DBManager_Config(string gatewayid, string deviceid, string Json) { if (this.DBManager == null) { DBManager_Initial(); } cls_DB_Info db_info = JsonConvert.DeserializeObject <cls_DB_Info>(Json); if (db_info != null) { this.DBManager.dbconfig_list.Add(db_info); } }