Add unit test

This commit is contained in:
sunkaixuan 2023-09-10 01:37:20 +08:00
parent d83991058f
commit e2f29d672c

View File

@ -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)
{ {