mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 02:14:53 +08:00
Add unit test
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user