- 修复 ISelect Sum/First 子查询时,若子查询实体类与主查询一样时,导致的 bug;

This commit is contained in:
28810
2019-08-12 16:53:13 +08:00
parent ecda6d8f49
commit 6d9b6b6670
4 changed files with 14 additions and 8 deletions

View File

@ -884,12 +884,12 @@ namespace FreeSql.Tests.MySqlConnector
var subquery = select.ToSql(a => new
{
all = a,
count = select.Sum(b => b.Id)
count = (long)select.Sum(b => b.Id)
});
var subqueryList = select.ToList(a => new
{
all = a,
count = select.Sum(b => b.Id)
count = (long)select.Sum(b => b.Id)
});
}
[Fact]