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) .GroupBy(it => it.Name)
.Select(it => new .Select(it => new
{ {
Name = it.Name, key = it.Name,
x = SqlFunc.AggregateCount(it.Id) groupCount = SqlFunc.AggregateCount(it.Id),
max=SqlFunc.AggregateMax(it.Id),
min=SqlFunc.AggregateMin(it.Id)
}).ToList(); }).ToList();
//测试生成SQL性能 //测试生成SQL性能
TestSqlBuilder(db); TestSqlBuilder(db);