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()); }
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()); }
public int ListVwCount(DynamicSearch.ConditionList Search) { return(Api.FindVw(Search.GetString(), Search.GetParam()).Count()); }
public virtual int ListCount(DynamicSearch.ConditionList Search) { return(BaseApi.Find(Search.GetString(), Search.GetParam()).Count()); }