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