- 增加 IncludeMany Take(5) 功能,实现每个子集合只取5条记录;

This commit is contained in:
28810
2019-05-17 20:40:06 +08:00
parent 0d8acb5ed4
commit 76baa5b9c0
11 changed files with 765 additions and 129 deletions

View File

@@ -135,8 +135,8 @@ namespace FreeSql.Tests {
});
var includet1 = g.sqlite.Select<Model1>()
.IncludeMany(a => a.Childs, s => s.Where(a => a.id > 0))
.IncludeMany(a => a.TestManys.Where(b => b.id == a.id))
.IncludeMany(a => a.Childs.Take(2), s => s.Where(a => a.id > 0))
.IncludeMany(a => a.TestManys.Take(1).Where(b => b.id == a.id))
.Where(a => a.id > 10)
.ToList();