I beleive its ready now.

This commit is contained in:
David Lebee
2019-03-22 16:17:19 -05:00
parent 10fbe01674
commit 7392c25257
4 changed files with 36 additions and 3 deletions
+5 -1
View File
@@ -25,6 +25,8 @@ namespace PoweredSoft.DynamicQuery
public List<TRecord> Data { get; set; }
public bool ShouldSerializeAggregates() => Aggregates != null;
public bool ShouldSerializeData() => Data != null;
}
// just result
@@ -44,7 +46,9 @@ namespace PoweredSoft.DynamicQuery
{
public string GroupPath { get; set; }
public object GroupValue { get; set; }
public bool HasSubGroups { get; set; }
public bool HasSubGroups => SubGroups != null && SubGroups.Count > 1;
public List<IGroupQueryResult<TRecord>> SubGroups { get; set; }
public bool ShouldSerializeSubGroups() => HasSubGroups;
}
}
@@ -18,7 +18,7 @@ namespace PoweredSoft.DynamicQuery
services.TryAddTransient<IGroup, Group>();
services.TryAddTransient<IQueryCriteria, QueryCriteria>();
services.TryAddTransient<IQueryHandler, QueryHandler>();
//services.TryAddTransient<IQueryHandlerAsync, QueryHandlerAsync>();
services.TryAddTransient<IQueryHandlerAsync, QueryHandlerAsync>();
return services;
}
}