mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add unit test
This commit is contained in:
parent
67776cec39
commit
f3d08a7563
@ -139,6 +139,7 @@
|
|||||||
<Compile Include="UnitTest\UDelete.cs" />
|
<Compile Include="UnitTest\UDelete.cs" />
|
||||||
<Compile Include="UnitTest\UFastest.cs" />
|
<Compile Include="UnitTest\UFastest.cs" />
|
||||||
<Compile Include="UnitTest\UConfig.cs" />
|
<Compile Include="UnitTest\UConfig.cs" />
|
||||||
|
<Compile Include="UnitTest\UOneManyMany 2.cs" />
|
||||||
<Compile Include="UnitTest\UOneManyMany.cs" />
|
<Compile Include="UnitTest\UOneManyMany.cs" />
|
||||||
<Compile Include="UnitTest\USplit.cs" />
|
<Compile Include="UnitTest\USplit.cs" />
|
||||||
<Compile Include="UnitTest\Models\TB_AdminUser.cs" />
|
<Compile Include="UnitTest\Models\TB_AdminUser.cs" />
|
||||||
|
@ -107,6 +107,15 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
throw new Exception("unit error");
|
throw new Exception("unit error");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
db.DbMaintenance.TruncateTable<Student_002, School_002, Room_002, Desk_002>();
|
||||||
|
|
||||||
|
db.InsertNav(list.First().school_001)
|
||||||
|
.ThenInclude(x => x.rooms)
|
||||||
|
.ThenInclude(x => x.desk);
|
||||||
|
db.InsertNav(list.Last().school_001)
|
||||||
|
.ThenInclude(x => x.rooms)
|
||||||
|
.ThenInclude(x => x.desk);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Student_002
|
public class Student_002
|
||||||
|
Loading…
Reference in New Issue
Block a user