mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-22 02:51:58 +08:00
Update unit test
This commit is contained in:
@@ -76,7 +76,10 @@ namespace OrmTest
|
||||
{
|
||||
throw new Exception("unit error");
|
||||
}
|
||||
db.DbMaintenance.TruncateTable<Student_002, School_002, Room_002, Desk_002>();
|
||||
db.Deleteable<Student_002>().ExecuteCommand();
|
||||
db.Deleteable<School_002>().ExecuteCommand();
|
||||
db.Deleteable<Room_002>().ExecuteCommand();
|
||||
db.Deleteable<Desk_002>().ExecuteCommand();
|
||||
foreach (var item in list)
|
||||
{
|
||||
item.sid = 0;
|
||||
|
||||
@@ -111,11 +111,6 @@ namespace OrmTest
|
||||
.Include(x=>x.books).ExecuteCommand();
|
||||
|
||||
db.InsertNav(list.Last())
|
||||
|
||||
.Include(x => x.school_001)
|
||||
.ThenInclude(x => x.rooms)
|
||||
.ThenInclude(x => x.desk)
|
||||
|
||||
.Include(x=>x.books).ExecuteCommand();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user