From d89c862dd93da6682801887635d724b84eb73942 Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@users.noreply.github.com> Date: Sun, 31 Jan 2021 00:38:38 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20=E5=88=86=E7=BB=84=E8=81=9A=E5=90=88?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 分组聚合查询.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/分组聚合查询.md b/分组聚合查询.md index 66057df..226147c 100644 --- a/分组聚合查询.md +++ b/分组聚合查询.md @@ -61,6 +61,14 @@ var list = fsql.Select() .ToList(a => new { a.Key.Area.Name }); ``` +## Aggregate + +```c# +var list = fsql.Select() + .Aggregate(a => Convert.ToInt32("count(distinct title)"), out var count) + .ToList(); +``` + ## API | 方法 | 返回值 | 参数 | 描述 |