Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public PagedResult(Array items, QueryArgs args, int total)
     : this(items, args)
 {
     Total = total;
 }
Esempio n. 3
0
 public static PagedResult <TResult> PagedResultByResult <TSource, TResult>(this IQueryable <TSource> query, QueryArgs args)
 {
     return(PagedResultByResult <TSource, TResult>(query, args, null));
 }
Esempio n. 4
0
 internal WhereBuilderContext(IQueryable source, QueryArgs arguments)
 {
     _currentQuery = _source = source;
     _arguments    = arguments ?? throw new ArgumentNullException(nameof(arguments));
 }