예제 #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));
        }
예제 #2
0
파일: PagedResult.cs 프로젝트: effun/nabla
 public PagedResult(Array items, QueryArgs args, int total)
     : this(items, args)
 {
     Total = total;
 }
예제 #3
0
 public static PagedResult <TResult> PagedResultByResult <TSource, TResult>(this IQueryable <TSource> query, QueryArgs args)
 {
     return(PagedResultByResult <TSource, TResult>(query, args, null));
 }
예제 #4
0
 internal WhereBuilderContext(IQueryable source, QueryArgs arguments)
 {
     _currentQuery = _source = source;
     _arguments    = arguments ?? throw new ArgumentNullException(nameof(arguments));
 }