mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-03-27 08:20:55 +08:00
update
2
贪婪加载.md
2
贪婪加载.md
@@ -120,7 +120,7 @@ class Dto {
|
||||
}
|
||||
|
||||
var dto = new [] { 1,2,3 }.Select(a => new Dto { TypeId = a }).ToList();
|
||||
dto.IncludeMany(d => d.Vods.Take(10).Where(vod => vod.TypeId == d.TypeId));
|
||||
dto.IncludeMany(fsql, d => d.Vods.Take(10).Where(vod => vod.TypeId == d.TypeId));
|
||||
|
||||
//执行后,dto 每个元素.Vods 将只有 10条记录
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user