Navigate query support skip take

This commit is contained in:
sunkaixuan
2022-06-07 15:59:00 +08:00
parent 658e15ec45
commit e9ce346e63
2 changed files with 17 additions and 3 deletions

View File

@@ -108,6 +108,10 @@ namespace OrmTest
var list3_1 = db.Queryable<StudentA>()
.Includes(x => x.Books.MappingField(z=>z.Names,()=>x.Name).ToList())
.ToList();
var list3_11 = db.Queryable<StudentA>()
.Includes(x => x.Books.Skip(1).Take(2).ToList())
.ToList();
//先用Mapper导航映射查出第二层