mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update unit test
This commit is contained in:
parent
b43d8cfb0b
commit
c1df015bd6
@ -38,6 +38,14 @@ namespace OrmTest
|
||||
|
||||
var list2 = db.Queryable<UnitaStudentA>()
|
||||
.Includes(x => x.Books).Where(x=>x.Books.Any()).ToList();
|
||||
|
||||
var list3 = db.Queryable<UnitaStudentA>()
|
||||
.IncludesAllFirstLayer().ToList();
|
||||
|
||||
if (list3.First().Books.Count() == 0||list3.First().SchoolA==null)
|
||||
{
|
||||
throw new Exception("unit error");
|
||||
}
|
||||
}
|
||||
public class UnitaStudentA
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user