mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Add unit test
This commit is contained in:
parent
d83991058f
commit
e2f29d672c
@ -68,6 +68,10 @@ DROP TABLE IF EXISTS `school0001`;
|
|||||||
|
|
||||||
var list=Db.Queryable<School>().Includes(X => X.StudentInfo).ToList();
|
var list=Db.Queryable<School>().Includes(X => X.StudentInfo).ToList();
|
||||||
var student= Db.Queryable<Student>().ToList();
|
var student= Db.Queryable<Student>().ToList();
|
||||||
|
if (student.Count != 1)
|
||||||
|
{
|
||||||
|
throw new Exception("unit error");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user