mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-22 21:01:59 +08:00
Add unit test
This commit is contained in:
@@ -139,6 +139,7 @@
|
||||
<Compile Include="UnitTest\UDelete.cs" />
|
||||
<Compile Include="UnitTest\UFastest.cs" />
|
||||
<Compile Include="UnitTest\UConfig.cs" />
|
||||
<Compile Include="UnitTest\UOneManyMany 2.cs" />
|
||||
<Compile Include="UnitTest\UOneManyMany.cs" />
|
||||
<Compile Include="UnitTest\USplit.cs" />
|
||||
<Compile Include="UnitTest\Models\TB_AdminUser.cs" />
|
||||
|
||||
@@ -107,6 +107,15 @@ namespace OrmTest
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user