Browse Source

Update unit test

pull/24/head
sunkaixuan 2 years ago
parent
commit
d102a81552
  1. 10
      Src/Asp.Net/SqliteTest/UnitTest/UnitNavInsertadfa1.cs

10
Src/Asp.Net/SqliteTest/UnitTest/UnitNavInsertadfa1.cs

@ -42,12 +42,20 @@ namespace OrmTest
.ToList();
foreach (var item in list)
{
item.id = item.id + 100;
item.id = 0;
}
bool b = db.InsertNav(list)
.Include(z1 => z1.detailList)
.ExecuteCommand();
List<AssignMission> list2 = db.Queryable<AssignMission>()
.Includes(it => it.detailList)
.ToList();
if (list2.Count() != 2)
{
throw new Exception("unit error");
}
}
//建类

Loading…
Cancel
Save