예제 #1
0
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="offset">略过</param>
        /// <param name="limit">取</param>
        /// <param name="searchModel">查询对象(需要查询的字段需要添加QueryType属性)</param>
        /// <param name="order">排序(order by id desc)</param>
        /// <returns></returns>
        public PageableData <T> GetPage(int offset, int limit, object searchModel, string order = "")
        {
            string condition = ConditionHelper.Build(searchModel).ToString();

            return(_provider.GetPage <T>(condition, searchModel, order, offset, limit));
        }