mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 21:13:46 +08:00
Add unit test
This commit is contained in:
@@ -289,6 +289,19 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
throw new Exception("unit error");
|
throw new Exception("unit error");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var xxx4 = db.Queryable<Tree1>()
|
||||||
|
.Includes(it => it.Child)
|
||||||
|
.OrderByDescending(x => x.Id)
|
||||||
|
.ToList(it => new ViewTree1
|
||||||
|
{
|
||||||
|
Count=1
|
||||||
|
});
|
||||||
|
|
||||||
|
if (xxx4[1].Child.Count() == 0)
|
||||||
|
{
|
||||||
|
throw new Exception("unit error");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class UnitA001
|
public class UnitA001
|
||||||
|
Reference in New Issue
Block a user