mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
提交多表查询新语法 groupby 测试代码
This commit is contained in:
@ -42,6 +42,13 @@ namespace FreeSql.Tests
|
||||
.OrderBy(w => w.t1.AddTime)
|
||||
.ToSql();
|
||||
|
||||
var xxxhzytupleGroupBy = g.sqlite.Select<Templates, TaskBuild>()
|
||||
.LeftJoin(w => w.t1.Id2 == w.t2.TemplatesId)
|
||||
.Where(w => w.t1.Code == "xxx" && w.t2.OptionsEntity03 == true)
|
||||
.GroupBy(w => new { w.t1 })
|
||||
.OrderBy(w => w.Key.t1.AddTime)
|
||||
.ToSql(w => new { w.Key.t1 });
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user