mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Add demo
This commit is contained in:
@@ -59,6 +59,11 @@ namespace OrmTest
|
||||
.Where(x => x.SchoolA.SchoolName == "北大")
|
||||
.ToList();
|
||||
|
||||
|
||||
var list22 = db.Queryable<StudentA>()
|
||||
.Includes(x => x.SchoolA.ToList(it=>new SchoolA() { SchoolId=it.SchoolId}), x => x.RoomList.ToList(it=>new RoomA() { RoomId=it.RoomId}))
|
||||
.ToList();
|
||||
|
||||
//先用Mapper导航映射查出第二层
|
||||
var list = db.Queryable<StudentA>().Mapper(x => x.SchoolA, x => x.SchoolId).ToList();
|
||||
|
||||
|
Reference in New Issue
Block a user