mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-08-03 20:45:27 +08:00
v1.8.1
This commit is contained in:
@ -883,7 +883,8 @@ namespace FreeSql.Tests.ShenTong
|
||||
b.Key,
|
||||
cou = b.Count(),
|
||||
sum2 = b.Sum(b.Value.TypeGuid),
|
||||
sum3 = b.Sum(b.Value.Type.Parent.Id)
|
||||
sum3 = b.Sum(b.Value.Type.Parent.Id),
|
||||
Name = aggsql1 == null ? "未定义类型" : b.Key
|
||||
});
|
||||
}
|
||||
[Fact]
|
||||
|
@ -773,7 +773,23 @@ namespace FreeSql.Tests.Sqlite
|
||||
sum2 = b.Sum(b.Value.TypeGuid),
|
||||
sum3 = b.Sum(b.Value.Type.Parent.Id)
|
||||
});
|
||||
|
||||
|
||||
|
||||
var aggsql4 = select
|
||||
.GroupBy(a => a.Title)
|
||||
.ToList(b => new TestGroupByDto01
|
||||
{
|
||||
Name = b.Key,
|
||||
TotalCount = b.Count()
|
||||
});
|
||||
}
|
||||
class TestGroupByDto01
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public int TotalCount { get; set; }
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToAggregate()
|
||||
{
|
||||
|
Reference in New Issue
Block a user