mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +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>()
|
var list2 = db.Queryable<UnitaStudentA>()
|
||||||
.Includes(x => x.Books).Where(x=>x.Books.Any()).ToList();
|
.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
|
public class UnitaStudentA
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user