grouping is starting well :P

This commit is contained in:
David Lebee
2018-10-19 16:44:13 -05:00
parent 65db65171a
commit 8ca897b304
7 changed files with 108 additions and 15 deletions
@@ -35,5 +35,19 @@ namespace PoweredSoft.DynamicQuery.Extensions
return null;
}
public static SelectTypes? SelectType(this AggregateType aggregateType)
{
if (aggregateType == AggregateType.Avg)
return SelectTypes.Average;
if (aggregateType == AggregateType.Count)
return SelectTypes.Count;
if (aggregateType == AggregateType.LongCount)
return SelectTypes.LongCount;
if (aggregateType == AggregateType.Sum)
return SelectTypes.Sum;
return null;
}
}
}