mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Update unit test
This commit is contained in:
parent
85cd1e9f13
commit
d102a81552
@ -42,12 +42,20 @@ namespace OrmTest
|
|||||||
.ToList();
|
.ToList();
|
||||||
foreach (var item in list)
|
foreach (var item in list)
|
||||||
{
|
{
|
||||||
item.id = item.id + 100;
|
item.id = 0;
|
||||||
}
|
}
|
||||||
bool b = db.InsertNav(list)
|
bool b = db.InsertNav(list)
|
||||||
.Include(z1 => z1.detailList)
|
.Include(z1 => z1.detailList)
|
||||||
.ExecuteCommand();
|
.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