Update unit test

This commit is contained in:
sunkaixuan 2023-03-22 23:01:35 +08:00
parent b43d8cfb0b
commit c1df015bd6

View File

@ -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
{