mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Add unit test
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user