mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 12:09:29 +08:00
Add demo
This commit is contained in:
@@ -54,6 +54,12 @@ namespace OrmTest
|
||||
db.CodeFirst.InitTables<LogicTest>();
|
||||
;
|
||||
db.Deleteable<LogicTest>().Where(it=>it.Id==1).IsLogic().ExecuteCommand();
|
||||
|
||||
|
||||
object o = db.Queryable<Order>().First();
|
||||
db.DeleteableByObject(o).ExecuteCommand();
|
||||
object os = db.Queryable<Order>().Take(2).ToList();
|
||||
db.DeleteableByObject(os).ExecuteCommand();
|
||||
Console.WriteLine("#### Deleteable End ####");
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user