mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Add demo
This commit is contained in:
@@ -64,6 +64,10 @@ namespace OrmTest
|
|||||||
db.Deleteable<Custom>()
|
db.Deleteable<Custom>()
|
||||||
.AS("order")
|
.AS("order")
|
||||||
.Where(it =>SqlFunc.Subqueryable<Custom>().AS("order").Where(s=>s.Id==it.Id).NotAny() ).ExecuteCommand();
|
.Where(it =>SqlFunc.Subqueryable<Custom>().AS("order").Where(s=>s.Id==it.Id).NotAny() ).ExecuteCommand();
|
||||||
|
var list = db.Queryable<Order>().Take(2).ToList();
|
||||||
|
db.Deleteable<Custom>()
|
||||||
|
.AS("order")
|
||||||
|
.Where(it => list.Any(s=>s.Name==it.Name)).ExecuteCommand();
|
||||||
Console.WriteLine("#### Deleteable End ####");
|
Console.WriteLine("#### Deleteable End ####");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user