public static PagedResult <TResult> PagedResultByResult <TSource, TResult>(this IQueryable <TSource> query, QueryArgs args, ModelConvertOptions options) { IQueryable <TResult> query1; query1 = Convert <TSource, TResult>(query, options); var state = WhereAndOrderBy(query1, args); query1 = state.Final; WriteSQL(query1); return(Linq.PagedResult <TResult> .Create(query1.ToArray(), args, state.Count, state.Plain)); }
public PagedResult(Array items, QueryArgs args, int total) : this(items, args) { Total = total; }
public static PagedResult <TResult> PagedResultByResult <TSource, TResult>(this IQueryable <TSource> query, QueryArgs args) { return(PagedResultByResult <TSource, TResult>(query, args, null)); }
internal WhereBuilderContext(IQueryable source, QueryArgs arguments) { _currentQuery = _source = source; _arguments = arguments ?? throw new ArgumentNullException(nameof(arguments)); }