Beispiel #1
0
        public void Add(BQLOrderByHandle orderBy)
        {
            //BQLEntityParamHandle handle=orderBy.Param as BQLEntityParamHandle;
            //if (CommonMethods.IsNull(handle))
            //{
            //    throw new Exception("请用表的现存字段进行排序!");
            //}
            //Add(handle.PInfo.PropertyName, orderBy.SortType);
            Sort objSort = new Sort();

            objSort.OrderHandle = orderBy;
            if (_lstScope != null)
            {
                _lstScope.HasInner = true;
            }
            base.Add(objSort);
        }
Beispiel #2
0
        /// <summary>
        /// 产生倒叙排序的项
        /// </summary>
        /// <param name="arg">字段</param>
        /// <returns></returns>
        public static BQLOrderByHandle DESC(BQLParamHandle arg)
        {
            BQLOrderByHandle orderHandle = new BQLOrderByHandle(arg, SortType.DESC);

            return(orderHandle);
        }