Beispiel #1
0
        /// <summary>
        /// 查询的数据集,将QueryTable转化成List
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        public List <T> QueryData <T>()
        {
            DataTable2List <T> c   = new DataTable2List <T>();
            List <T>           rtn = c.ConvertTo(QueryTable);

            return(rtn);
        }
Beispiel #2
0
        /// <summary>
        /// 查询的数据集,将QueryDatas中指定的table转化成List
        /// </summary>
        /// <typeparam name="T">dto数据类型</typeparam>
        /// <param name="tableindex">table index</param>
        /// <returns></returns>
        public List <T> QueryData <T>(int tableindex)
        {
            DataTable2List <T> c   = new DataTable2List <T>();
            List <T>           rtn = c.ConvertTo(QueryDatas[tableindex]);

            return(rtn);
        }