- 调整 ToList(a => new Dto { id = 1, title = a.xx.Title}),之前只映射 id、title,现在是先映射 Dto 所有属性,再映射 id、title;

This commit is contained in:
28810
2019-11-04 13:01:52 +08:00
parent 5518a717ed
commit ed2a1e3bd3
4 changed files with 40 additions and 165 deletions

View File

@ -164,6 +164,7 @@ namespace FreeSql.Tests.Sqlite
g.sqlite.Insert<TestDtoLeftJoin>(testdtolj).ExecuteAffrows();
}
select.Limit(10).ToList(a => new TestDto { id = a.Id, name = a.Title });
var testDto1 = select.Limit(10).ToList(a => new TestDto { id = a.Id, name = a.Title });
var testDto2 = select.Limit(10).ToList(a => new TestDto());
var testDto3 = select.Limit(10).ToList(a => new TestDto { });