mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Add unit test
This commit is contained in:
parent
a149addba9
commit
267568e7b0
@ -60,7 +60,14 @@ namespace OrmTest
|
||||
.ToList();
|
||||
|
||||
|
||||
db.QueryFilter.AddTableFilter<BookA>(x => x.Name == "a");
|
||||
var list22 = db.Queryable<StudentA>()
|
||||
.Includes(x => x.Books)
|
||||
.Where(x => x.Books.Any(z => z.BookId == 1) || x.Books.Any(z => z.BookId == 1))
|
||||
.ToList();
|
||||
|
||||
|
||||
var list222 = 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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user