Exemplo n.º 1
0
 /// <summary>
 /// 获取分页记录集合
 /// </summary>
 /// <param name="connection"></param>
 internal override void RunLinkQueueTask(ref DbConnection connection)
 {
     try
     {
         values = isDesc ? array.GetPageDesc(sorter, pageSize, currentPage, out count) : array.GetPage(sorter, pageSize, currentPage, out count);
     }
     finally
     {
         wait.Set();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 获取分页记录集合
 /// </summary>
 /// <param name="connection"></param>
 internal override Threading.LinkQueueTaskNode RunLinkQueueTask(ref DbConnection connection)
 {
     try
     {
         values = isDesc ? array.GetPageDesc(sorter, pageSize, currentPage, out count) : array.GetPage(sorter, pageSize, currentPage, out count);
     }
     finally
     {
         wait.Set();
     }
     return(LinkNext);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 获取分页记录集合
 /// </summary>
 /// <param name="connection"></param>
 internal override void RunLinkQueueTask(ref DbConnection connection)
 {
     try
     {
         Value.Key = isDesc ? array.GetPageDesc(sorter, pageSize, currentPage, out Value.Value) : array.GetPage(sorter, pageSize, currentPage, out Value.Value);
     }
     finally
     {
         if (System.Threading.Interlocked.CompareExchange(ref continuation, Pub.EmptyAction, null) != null)
         {
             new Task(continuation).Start();
         }
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// 获取分页记录集合
 /// </summary>
 /// <param name="connection"></param>
 internal override void RunLinkQueueTask(ref DbConnection connection)
 {
     try
     {
         Value.Key   = isDesc ? array.GetPageDesc(sorter, pageSize, currentPage, out Value.Value) : array.GetPage(sorter, pageSize, currentPage, out Value.Value);
         IsCompleted = true;
     }
     finally
     {
         if (continuation != null || System.Threading.Interlocked.CompareExchange(ref continuation, Common.EmptyAction, null) != null)
         {
             continuation();
         }
     }
 }