mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 12:09:29 +08:00
Add demo
This commit is contained in:
@@ -60,6 +60,10 @@ namespace OrmTest
|
||||
db.DeleteableByObject(o).ExecuteCommandAsync().GetAwaiter().GetResult();
|
||||
object os = db.Queryable<Order>().Take(2).ToList();
|
||||
db.DeleteableByObject(os).ExecuteCommand();
|
||||
|
||||
db.Deleteable<Custom>()
|
||||
.AS("order")
|
||||
.Where(it =>SqlFunc.Subqueryable<Custom>().AS("order").Where(s=>s.Id==it.Id).NotAny() ).ExecuteCommand();
|
||||
Console.WriteLine("#### Deleteable End ####");
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user