Update unit test

This commit is contained in:
sunkaixuan 2022-07-03 03:28:31 +08:00
parent f3d08a7563
commit 0c65b17e84

View File

@ -116,6 +116,12 @@ namespace OrmTest
db.InsertNav(list.Last().school_001)
.ThenInclude(x => x.rooms)
.ThenInclude(x => x.desk);
if (db.Queryable<Desk_002>().Count() != 4 || db.Queryable<Room_002>().Count() != 4
|| db.Queryable<School_002>().Count() != 2 || db.Queryable<Student_002>().Count() != 0)
{
throw new Exception("unit error");
}
}
public class Student_002