Beispiel #1
0
        public static DataSet GetDataSetByPagination <T>(this T t, PagingEntity page, ref string HtmlPage) where T : class
        {
            DataSet ds = EntityOperate <T> .GetDataSetByPagination(page);

            if (ds.Tables.Count > 1 && ds.Tables[1].Rows.Count > 0)
            {
                int iDataCount = 0;
                int.TryParse(ds.Tables[1].Rows[0][0] + "", out iDataCount);
                page.DataCount = iDataCount;
                HtmlPage       = page.CreateHtmlPage("");
            }
            return(ds);
        }