mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-03 23:10:54 +08:00
Updated 分组聚合查询 (markdown)
@@ -61,6 +61,14 @@ var list = fsql.Select<Topic>()
|
||||
.ToList(a => new { a.Key.Area.Name });
|
||||
```
|
||||
|
||||
## Aggregate
|
||||
|
||||
```c#
|
||||
var list = fsql.Select<Topic>()
|
||||
.Aggregate(a => Convert.ToInt32("count(distinct title)"), out var count)
|
||||
.ToList();
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
| 方法 | 返回值 | 参数 | 描述 |
|
||||
|
||||
Reference in New Issue
Block a user