mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 优化 WithTempQuery + ToList 使用子查询;
This commit is contained in:
Binary file not shown.
@ -864,9 +864,10 @@ namespace base_entity
|
||||
|
||||
var testsublist2 = fsql.Select<UserGroup>()
|
||||
.GroupBy(a => new { a.Id })
|
||||
.WithTempQuery(a => a.Key)
|
||||
.First(a => new
|
||||
{
|
||||
a.Id,
|
||||
id = a,
|
||||
list = userRepository.Select.Where(b => b.GroupId == a.Id).ToList(),
|
||||
list2 = userRepository.Select.Where(b => b.GroupId == a.Id).ToList(b => b.Nickname),
|
||||
});
|
||||
|
Reference in New Issue
Block a user