From f29735ffdda762b2bc36401e109fd8860ceb0231 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 16 Aug 2022 21:24:39 +0800 Subject: [PATCH] Update demo --- Src/Asp.Net/SqlServerTest/Demo/Demo2_Updateable.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Src/Asp.Net/SqlServerTest/Demo/Demo2_Updateable.cs b/Src/Asp.Net/SqlServerTest/Demo/Demo2_Updateable.cs index 32888dc29..7a78676e0 100644 --- a/Src/Asp.Net/SqlServerTest/Demo/Demo2_Updateable.cs +++ b/Src/Asp.Net/SqlServerTest/Demo/Demo2_Updateable.cs @@ -59,11 +59,18 @@ namespace OrmTest //Update by track + Console.WriteLine(" Tracking 1:"); db.Tracking(updateObj); + //Update set name updateObj.Name = "a1" + Guid.NewGuid(); db.Updateable(updateObj).ExecuteCommand(); db.TempItems = null; + Console.WriteLine(" Tracking 2:"); + db.Tracking(updateObj); + //No Update + db.Updateable(updateObj).ExecuteCommand(); + db.TempItems = null; /*** 2.by expression ***/