From b46b1d24ea2710cb5e7d5f1806e2c0f3b20ad976 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 21 Jun 2023 19:37:42 +0800 Subject: [PATCH] Add demo --- Src/Asp.NetCore2/SqlSeverTest/Demo/Demo4_Deleteable.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSeverTest/Demo/Demo4_Deleteable.cs b/Src/Asp.NetCore2/SqlSeverTest/Demo/Demo4_Deleteable.cs index 15db55232..c72759942 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/Demo/Demo4_Deleteable.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/Demo/Demo4_Deleteable.cs @@ -44,6 +44,8 @@ namespace OrmTest //logic delete db.CodeFirst.InitTables(); db.Deleteable().Where(it=>it.Name=="a").IsLogic().ExecuteCommand(); + + db.Deleteable().WhereColumns(db.Queryable().Take(2).ToList(), it => new { it.Id, it.Name }).ExecuteCommand(); Console.WriteLine("#### Deleteable End ####"); }