2018-10-17 19:30:55 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace PoweredSoft.DynamicQuery.Core
|
|
|
|
|
{
|
|
|
|
|
public interface IAggregateResult
|
|
|
|
|
{
|
|
|
|
|
string Path { get; set; }
|
|
|
|
|
AggregateType Type { get; set; }
|
|
|
|
|
object Value { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface IQueryResult
|
|
|
|
|
{
|
|
|
|
|
List<IAggregateResult> Aggregates { get; }
|
2018-10-18 21:52:05 -04:00
|
|
|
|
List<object> Data { get; }
|
2018-10-17 19:30:55 -04:00
|
|
|
|
}
|
|
|
|
|
|
2018-10-18 21:52:05 -04:00
|
|
|
|
public interface IGroupQueryResult : IQueryResult
|
2018-10-17 19:30:55 -04:00
|
|
|
|
{
|
2018-10-18 21:52:05 -04:00
|
|
|
|
string GroupPath { get; set; }
|
|
|
|
|
object GroupValue { get; set; }
|
2018-10-17 19:30:55 -04:00
|
|
|
|
}
|
|
|
|
|
|
2018-10-18 21:52:05 -04:00
|
|
|
|
public interface IQueryExecutionResult : IQueryResult
|
2018-10-17 19:30:55 -04:00
|
|
|
|
{
|
2018-10-18 21:52:05 -04:00
|
|
|
|
long TotalRecords { get; set; }
|
|
|
|
|
long? NumberOfPages { get; set; }
|
2018-10-17 19:30:55 -04:00
|
|
|
|
}
|
2018-10-18 21:52:05 -04:00
|
|
|
|
|
|
|
|
|
|
2018-10-17 19:30:55 -04:00
|
|
|
|
}
|