This commit is contained in:
sunkaixuan 2025-06-12 13:56:34 +08:00
parent 05791e330b
commit b6c8b64f8c

View File

@ -122,8 +122,10 @@ namespace MongoDbTest
.GroupBy(it => it.Name)
.Select(it => new
{
Name = it.Name,
x = SqlFunc.AggregateCount(it.Id)
key = it.Name,
groupCount = SqlFunc.AggregateCount(it.Id),
max=SqlFunc.AggregateMax(it.Id),
min=SqlFunc.AggregateMin(it.Id)
}).ToList();
//测试生成SQL性能
TestSqlBuilder(db);