Add unit test

This commit is contained in:
sunkaixuan
2022-06-14 12:16:42 +08:00
parent a66aefa20f
commit 8213c687ba

View File

@@ -190,6 +190,11 @@ namespace OrmTest
{ {
x = SqlFunc.Subqueryable<Order>().Where(z => z.Id == it.Id).Any() x = SqlFunc.Subqueryable<Order>().Where(z => z.Id == it.Id).Any()
}).ToList(); }).ToList();
db.Deleteable<StudentA>().Where(x => x.SchoolA.TeacherList.Any()).ExecuteCommand();
db.Deleteable<StudentA>().Where(x => x.SchoolA.School_Name=="a").ExecuteCommand();
db.Updateable<StudentA>()
.SetColumns(it=>it.Name=="a").Where(x => x.SchoolA.School_Name == "a").ExecuteCommand();
} }
public class UnitA001 public class UnitA001