/// <summary>
        /// 创建排序对象
        /// </summary>
        /// <param name="property">排序属性名</param>
        /// <param name="isAsc">指示是否升序排序,true=升序,false=降序</param>
        /// <returns></returns>
        public static OrderBys Create(string property, bool isAsc)
        {
            var rs = new OrderBys();

            if (!string.IsNullOrWhiteSpace(property))
            {
                rs.Add(property, isAsc);
            }
            return(rs);
        }
        public PageQueryParam(TCondition searchData)
        {
            this.Condition = searchData;

            PageIndex = 0;

            PageSize = 0;

            OrderBy = OrderBys.Create("", "-1");

            Condition = searchData;
        }
        /// <summary>
        /// 创建排序对象
        /// </summary>
        /// <param name="property"></param>
        /// <param name="orderType">排序方式 [1:正序]  [-1:倒序]</param>
        /// <returns></returns>
        public static OrderBys Create(string property, string orderType)
        {
            var rs = new OrderBys();

            if (!string.IsNullOrWhiteSpace(property))
            {
                if (!string.IsNullOrWhiteSpace(orderType))
                {
                    if (orderType == "1")
                    {
                        rs.Add(property, true);
                    }
                    else if (orderType == "-1")
                    {
                        rs.Add(property, false);
                    }
                }
            }
            return(rs);
        }