Exemplo n.º 1
0
        protected void reset(Expression expression)
        {
            ResetTask task = new ResetTask(this, expression);

            SqlTable.AddQueue(task);
            task.Wait();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取分页记录集合
        /// </summary>
        /// <param name="pageSize">分页长度</param>
        /// <param name="currentPage">分页页号</param>
        /// <param name="count">记录总数</param>
        /// <param name="isDesc">是否逆序</param>
        /// <returns>分页记录集合</returns>
        public valueType[] GetPage(int pageSize, int currentPage, out int count, bool isDesc = true)
        {
            PageTask task = new PageTask(this, pageSize, currentPage, isDesc);

            SqlTable.AddQueue(task);
            return(task.Wait(out count));
        }
Exemplo n.º 3
0
        protected void reset(Expression <Func <modelType, bool> > expression)
        {
            resetTask task = new resetTask(this, expression);

            SqlTable.AddQueue(task);
            task.Wait();
        }
Exemplo n.º 4
0
        /// <summary>
        /// 获取分页记录集合 awaiter
        /// </summary>
        /// <param name="pageSize">分页长度</param>
        /// <param name="currentPage">分页页号</param>
        /// <param name="isDesc">是否逆序</param>
        /// <returns>分页记录集合 + 记录总数</returns>
        public Threading.Awaiter <KeyValue <valueType[], int> > GetPageAwaiter(int pageSize, int currentPage, bool isDesc = true)
        {
            PageAwaiter task = new PageAwaiter(this, pageSize, currentPage, isDesc);

            SqlTable.AddQueue(task);
            return(task);
        }