This commit is contained in:
sunkaixuan
2022-12-26 15:29:20 +08:00
parent ad8851d19d
commit 96eadee09a
2 changed files with 12 additions and 0 deletions

View File

@@ -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 ####");
}