Beispiel #1
0
        public List <SensorDataModel> SearchList(int userId, DateTime timeStart, DateTime timeEnd, int collector = 0, int sensor = 0)
        {
            var dataset = SearchAllByUserId(userId, timeStart, timeEnd, collector, sensor);

            return(DbHelperMySQL.DataSetToIList <SensorDataModel>(dataset, 0).ToList());
        }
Beispiel #2
0
        public List <CollectData> ConvertToList(DataSet ds)
        {
            List <CollectData> list = DbHelperMySQL.DataSetToIList <CollectData>(ds, 0).ToList();

            return(list);
        }