mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-04 15:30:53 +08:00
update
@@ -48,6 +48,9 @@ var groupby = fsql.Select<Topic>()
|
||||
| GroupBy | \<this\> | Lambda | 按选择的列分组,GroupBy(a => a.Name) | GroupBy(a => new{a.Name,a.Time}) |
|
||||
| GroupBy | \<this\> | string, parms | 按原生sql语法分组,GroupBy("concat(name, ?cc)", new { cc = 1 }) |
|
||||
| Having | \<this\> | string, parms | 按原生sql语法聚合条件过滤,Having("count(name) = ?cc", new { cc = 1 }) |
|
||||
| 【成员】 |
|
||||
| Key | | | 返回 GroupBy 选择的对象 |
|
||||
| Value | | | 返回主表 或 From\<T2,T3....\> 的字段选择器 |
|
||||
|
||||
## 参考资料
|
||||
|
||||
|
||||
2
更新日志.md
2
更新日志.md
@@ -7,6 +7,8 @@
|
||||
- 修复 Expression DateTime 类型 CompareTo 在 MySql/SqlServer 下的 bug;
|
||||
- 修复 ISelect.ToList(true) 无效的 bug;
|
||||
- 增加 IAop.ConfigEntity 配置实体特性,可实现使用其他 ORM 的实体特性,[#36](https://github.com/2881099/FreeSql/issues/36);
|
||||
- 优化 ISelect.GroupBy 查询,增加 .Value 实现聚合源字段查询,ToList(a => a.Sum(a.Value.Score)),[#38](https://github.com/2881099/FreeSql/issues/38);
|
||||
- 增加 Expression string.Concat,[#39](https://github.com/2881099/FreeSql/issues/39);
|
||||
|
||||
## v0.5.3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user