/// <summary>
        /// 获取逆序分页数据集合
        /// </summary>
        /// <param name="key">关键字</param>
        /// <param name="pageSize">分页大小</param>
        /// <param name="currentPage">分页页号</param>
        /// <param name="count">数据总数</param>
        /// <returns>逆序分页数据集合</returns>
        public valueType[] GetPageDesc(keyType key, int index, int pageSize, int currentPage, out int count)
        {
            ladyOrderArray <valueType> array = getCache(key, index);

            if (array != null)
            {
                return(array.GetPageDesc(cache.SqlTool.Lock, sorter, pageSize, currentPage, out count));
            }
            count = 0;
            return(nullValue <valueType> .Array);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取逆序分页数据集合
        /// </summary>
        /// <typeparam name="arrayType"></typeparam>
        /// <param name="key">关键字</param>
        /// <param name="getValue">数组转换</param>
        /// <param name="pageSize">分页大小</param>
        /// <param name="currentPage">分页页号</param>
        /// <param name="count">数据总数</param>
        /// <returns>逆序分页数据集合</returns>
        public arrayType[] GetPageDesc <arrayType>(keyType key, Func <valueType, arrayType> getValue, int pageSize, int currentPage, out int count)
        {
            ladyOrderArray <valueType> array = getCache(key);

            if (array != null)
            {
                return(array.GetPageDesc(cache.SqlTool.Lock, Sorter, getValue, pageSize, currentPage, out count));
            }
            count = 0;
            return(nullValue <arrayType> .Array);
        }