- 修复 DbContext TrackList 对匿名对象处理的 bug;#150

This commit is contained in:
28810
2019-12-08 22:59:34 +08:00
parent dee1d9af8b
commit 65e3ed0091
3 changed files with 16 additions and 0 deletions

View File

@ -29,6 +29,14 @@ namespace FreeSql.Tests
using (var ctx = g.sqlite.CreateDbContext())
{
var test150 = ctx.Set<Tag>()
.Select.From<Tag>((s, b) => s.InnerJoin(a => a.Id == b.Id))
.ToList((a, b) => new
{
a.Id,a.Name,
id2 = b.Id, name2 = b.Name
});
var songs = ctx.Set<Song>().Select
.IncludeMany(a => a.Tags)
.ToList();