mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Mongodb
This commit is contained in:
parent
05791e330b
commit
b6c8b64f8c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user