Ejemplo n.º 1
0
        /// <summary>
        /// 获得所有行信息
        /// </summary>
        /// <returns></returns>
        public List <Dictionary <string, string> > GetRows()
        {
            if (!IsValid())
            {
                return(null);
            }
            var rows = MySQLManager.GetAllRow(currentDataTypeName);
            List <Dictionary <string, string> > res = new List <Dictionary <string, string> >();

            foreach (var row in rows)
            {
                var newRow = new Dictionary <string, string>();
                foreach (KeyValuePair <string, string> dict in row)
                {
                    newRow.Add(dict.Key.Split('|')[0], dict.Value);
                }
                res.Add(newRow);
            }
            return(res);
        }