mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update unit test
This commit is contained in:
parent
85cd1e9f13
commit
d102a81552
@ -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…
Reference in New Issue
Block a user