public IEnumerable <T> ToList(int skip = 0, int take = 0) { this.CallExpression = new CallExpression(CallType.ToList); this.TakeExpression = new TakeOpenExpression(skip, take); return((IEnumerable <T>) this.Repository.Execute(this)); }
public PagedList <T> ToPageList(int index, int pageSize = 10) { this.CallExpression = new CallExpression(CallType.PageList); this.TakeExpression = new TakeOpenExpression(pageSize * (index - 1), pageSize); return((PagedList <T>) this.Repository.Execute(this)); }