コード例 #1
0
ファイル: CLogBLL.cs プロジェクト: scalzdp/studydoc
        /// <summary>
        /// 用给定的条件,取得 LogEntity 对象集合。本方法支持分页。
        /// </summary>
        /// <param name="whereClause">sql条件语句</param>
        /// <param name="OrderBy">sql排序语句</param>
        /// <param name="pageSize">返回结果分页的每页数量,为0表示不分页。</param>
        /// <param name="pageNumber">当前页号</param>
        /// <param name="totalSize">总数量</param>
        /// <param name="totalPage">总页数</param>
        /// <returns>LogEntity 对象集合</returns>
        public static List<LogEntity> LoadCollection(string whereClause, string OrderBy, int pageSize, int pageNumber, out int totalSize, out int totalPage)
        {
            try
            {
                totalSize = 0;
                totalPage = 0;
                List<LogEntity> result;

                CLogDAL d = new CLogDAL();
                result = d.LoadCollection(whereClause, OrderBy, pageSize, pageNumber, out totalSize, out totalPage);

                return result;
            }
            catch(Exception ex)
            {
                throw ex;
            }
        }