/// <summary> /// Returns the list of Result objects specified by expression in Select action /// </summary> /// <param name="skip">The count of skipped items</param> /// <param name="take">The count of taken items</param> /// <returns>List of Result objects</returns> public List <T> ToList(int?skip = null, int?take = null) { _queryData.Skip = skip; _queryData.Take = take; List <T> result = Factory.GetAnalyticsProcessor <T>().Execute(_queryData, _expression, _fieldsMap).ToList(); _queryData.Reset(); return(result); }
/// <summary> /// Returns the Created data context /// </summary> /// <param name="from">Report start date</param> /// <param name="to">Report end date</param> /// <returns>Created data context</returns> public CreatedDataContext Create(DateTime from, DateTime to) { _queryData.Reset(); _queryData.To = to; _queryData.From = from; return(new CreatedDataContext(_queryData)); }