Example #1
0
        public GenericFluentEventQuery <T> EventQuery <T, TSort>(DateTime fromDate, DateTime toDate, ISortableLimit limit, int limitCount, ISortOrder sortOrder, Expression <Func <T, TSort> > sortProperty, string queryName = "ChronologicalQuery") where T : new()
        {
            var populatedSortProperty = Property <TSort> .Create(sortProperty);

            var populatedSort  = Sort.Create(sortOrder, populatedSortProperty);
            var populatedLimit = Limit.CreateLimit(limit, limitCount, populatedSort);

            return(new GenericFluentEventQuery <T>(queryName, Search.Span(fromDate, toDate), populatedLimit, this));
        }
Example #2
0
        public GenericFluentAggregateQuery <T> AggregateQuery <T>(DateTime fromDate, DateTime toDate, string queryName = "ChronologicalQuery") where T : new()
        {
            if (WebRequestChannel == WebRequestChannel.Http)
            {
                return(new GenericFluentAggregateQuery <T>(queryName, Search.Span(fromDate, toDate), this, new AggregateApiRepository(new HttpRepository(this))));
            }

            return(new GenericFluentAggregateQuery <T>(queryName, Search.Span(fromDate, toDate), this));
        }
Example #3
0
        public GenericFluentEventQuery <T> EventQuery <T>(DateTime fromDate, DateTime toDate, INonSortableLimit limit, int limitCount, string queryName = "ChronologicalQuery") where T : new()
        {
            var populatedLimit = Limit.CreateLimit(limit, limitCount);

            if (WebRequestChannel == WebRequestChannel.Http)
            {
                return(new GenericFluentEventQuery <T>(queryName, Search.Span(fromDate, toDate), populatedLimit, this, new EventApiRepository(new HttpRepository(this))));
            }

            return(new GenericFluentEventQuery <T>(queryName, Search.Span(fromDate, toDate), populatedLimit, this));
        }
Example #4
0
        public GenericFluentEventQuery <T> EventQuery <T>(DateTime fromDate, DateTime toDate, INonSortableLimit limit, int limitCount, string queryName = "ChronologicalQuery") where T : new()
        {
            var populatedLimit = Limit.CreateLimit(limit, limitCount);

            return(new GenericFluentEventQuery <T>(queryName, Search.Span(fromDate, toDate), populatedLimit, this));
        }
Example #5
0
 public GenericFluentAggregateQuery <T> AggregateQuery <T>(DateTime fromDate, DateTime toDate, string queryName = "ChronologicalQuery") where T : new()
 {
     return(new GenericFluentAggregateQuery <T>(queryName, Search.Span(fromDate, toDate), this));
 }