mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
update Aggregate tests
This commit is contained in:
parent
16642296f3
commit
2222fa269e
@ -813,9 +813,13 @@ namespace FreeSql.Tests.Dameng
|
||||
{
|
||||
var sql = select.ToAggregate(a => new { sum = a.Sum(a.Key.Id + 11.11), avg = a.Avg(a.Key.Id), count = a.Count(), max = a.Max(a.Key.Id), min = a.Min(a.Key.Id) });
|
||||
|
||||
select
|
||||
var sel1 = select
|
||||
.Aggregate(a => new { sum = a.Sum(a.Key.Id), count = a.Count() }, out var output)
|
||||
.ToList();
|
||||
|
||||
var sel2 = select
|
||||
.Aggregate(a => Convert.ToInt32("count(distinct title)"), out var output2)
|
||||
.ToList();
|
||||
}
|
||||
[Fact]
|
||||
public void OrderBy()
|
||||
|
Loading…
x
Reference in New Issue
Block a user