public abstract IPaged <T> GetPaged( string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom, Expression <Func <T, bool> > predicate);
public abstract Task <IPaged <T> > GetPagedAsync( string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom, Expression <Func <T, bool> > predicate, CancellationToken ctok);
public Task <IPaged <T> > GetPagedAsync( string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom) { return(GetPagedAsync(searchFields, pageIndex, pageSize, sorts, keyword, indexFrom, null, CancellationToken.None)); }
public abstract IPaged <TResult> GetPaged <TResult>( Expression <Func <T, TResult> > selector, string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom, Expression <Func <T, bool> > predicate) where TResult : class;
public IPaged <T> GetPaged( string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom) { return(GetPaged(searchFields, pageIndex, pageSize, sorts, keyword, indexFrom, null)); }
public Task <IPaged <T> > GetPagedAsync( string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom, Expression <Func <T, bool> > predicate) { return(GetPagedAsync(searchFields, pageIndex, pageSize, sorts, keyword, indexFrom, predicate, null, CancellationToken.None)); }
public override IPaged <T> GetPaged( string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom, Expression <Func <T, bool> > predicate) { return(GetPaged(searchFields, pageIndex, pageSize, sorts, keyword, indexFrom, predicate, null)); }
public IPaged <T> GetPaged( string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom, Func <IQueryable <T>, IQueryable <T> > include) { return(GetPaged(searchFields, pageIndex, pageSize, sorts, keyword, indexFrom, null, include)); }
public abstract Task <IPaged <TResult> > GetPagedAsync <TResult>( Expression <Func <T, TResult> > selector, string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom, Expression <Func <T, bool> > predicate, CancellationToken ctok) where TResult : class;
public Task <IPaged <T> > GetPagedAsync( string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom, Func <IQueryable <T>, IQueryable <T> > include, CancellationToken ctok) { return(GetPagedAsync(searchFields, pageIndex, pageSize, sorts, keyword, indexFrom, null, include, ctok)); }
public IPaged <TResult> GetPaged <TResult>( Expression <Func <T, TResult> > selector, string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom) where TResult : class { return(GetPaged(selector, searchFields, pageIndex, pageSize, sorts, keyword, indexFrom, null)); }
public ReadPagedInterceptorArgs( string[] searchFields, Expression <Func <T, bool> > predicate, Func <object, Task> pagedValidation, Func <IQueryable <T>, IQueryable <T> > include, PageIndexFrom defaultPageIndexFrom) { SearchFields = searchFields; Predicate = predicate; PagedValidation = pagedValidation; Include = include; DefaultPageIndexFrom = defaultPageIndexFrom; }
public static PageQuery GetPageQueryMapping( string[] searchFields, int pageIndex = PageQuery.DefaultIndexFrom, int pageSize = PageQuery.DefaultPageSize, string[] sorts = null, string keyword = null, PageIndexFrom indexFrom = null) { if (searchFields == null || !searchFields.Any()) { throw new ArgumentNullException(nameof(searchFields)); } return(PageQuery.Get(pageIndex, pageSize, sorts, keyword, indexFrom, searchFields)); }
public override Task <IPaged <TResult> > GetPagedAsync <TResult>( Expression <Func <T, TResult> > selector, string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom, Expression <Func <T, bool> > predicate, CancellationToken ctok) { return(GetPagedAsync( selector, searchFields, pageIndex, pageSize, sorts, keyword, indexFrom, predicate, null, ctok)); }
public Task <IPaged <TResult> > GetPagedAsync <TResult>( Expression <Func <T, TResult> > selector, string[] searchFields, int pageIndex, int pageSize, string[] sorts, string keyword, PageIndexFrom indexFrom, Func <IQueryable <T>, IQueryable <T> > include) where TResult : class { return(GetPagedAsync( selector, searchFields, pageIndex, pageSize, sorts, keyword, indexFrom, null, include, CancellationToken.None)); }