update unit test

This commit is contained in:
sunkaixuan
2022-07-04 07:57:52 +08:00
parent 466b4b5b31
commit 2017771513
6 changed files with 403 additions and 22 deletions

View File

@@ -94,11 +94,11 @@ namespace OrmTest
}
}
db.InsertNav(list.First())
.ThenInclude(x => x.school_001)
.Include(x => x.school_001)
.ThenInclude(x => x.rooms)
.ThenInclude(x => x.desk).ExecuteCommand();
db.InsertNav(list.Last())
.ThenInclude(x => x.school_001)
.Include(x => x.school_001)
.ThenInclude(x => x.rooms)
.ThenInclude(x => x.desk).ExecuteCommand();
@@ -111,10 +111,10 @@ namespace OrmTest
db.DbMaintenance.TruncateTable<Student_003, School_003, Room_003, Desk_003>();
db.InsertNav(list.First().school_001)
.ThenInclude(x => x.rooms)
.Include(x => x.rooms)
.ThenInclude(x => x.desk).ExecuteCommand();
db.InsertNav(list.Last().school_001)
.ThenInclude(x => x.rooms)
.Include(x => x.rooms)
.ThenInclude(x => x.desk).ExecuteCommand();
if (db.Queryable<Desk_003>().Count() != 4 || db.Queryable<Room_003>().Count() != 4