mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 修复 DbContext TrackList 对匿名对象处理的 bug;#150
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user