示例#1
0
        public List <VwLog> ListVw(string DefaultSort, DynamicSearch.ConditionList Search, string Sort, int PageIndex, int PageSize)
        {
            if (string.IsNullOrEmpty(Sort))
            {
                Sort = DefaultSort;
            }

            return(Api.FindVw(Search.GetString(), Search.GetParam()).Skip(PageSize * PageIndex).Take(PageSize).ToList());
        }
示例#2
0
        public virtual List <TEntity> List(string DefaultSort, DynamicSearch.ConditionList Search, string Sort, int PageIndex, int PageSize)
        {
            if (string.IsNullOrEmpty(Sort))
            {
                Sort = DefaultSort;
            }

            return(BaseApi.Find(Search.GetString(), Search.GetParam())
                   .OrderBy(Sort.EntitySort()).Skip(PageIndex * PageSize).Take(PageSize).ToList());
        }
示例#3
0
 public int ListVwCount(DynamicSearch.ConditionList Search)
 {
     return(Api.FindVw(Search.GetString(), Search.GetParam()).Count());
 }
示例#4
0
 public virtual int ListCount(DynamicSearch.ConditionList Search)
 {
     return(BaseApi.Find(Search.GetString(), Search.GetParam()).Count());
 }