From d316137e0c7b827a1ebdee88ad8616dd7e266bc8 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 4 Jan 2023 12:56:44 +0800 Subject: [PATCH] Add demo --- Src/Asp.Net/PgSqlTest/Demo/Demo2_Updateable.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Asp.Net/PgSqlTest/Demo/Demo2_Updateable.cs b/Src/Asp.Net/PgSqlTest/Demo/Demo2_Updateable.cs index aa1528aa6..087baf174 100644 --- a/Src/Asp.Net/PgSqlTest/Demo/Demo2_Updateable.cs +++ b/Src/Asp.Net/PgSqlTest/Demo/Demo2_Updateable.cs @@ -101,6 +101,11 @@ namespace OrmTest //Use Lock db.Updateable(updateObj).With(SqlWith.UpdLock).ExecuteCommand(); + db.Updateable() + .AS("Order") + .SetColumns("name", 1) + .Where("id=1").ExecuteCommand(); + //Where Sql //db.Updateable(updateObj).Where("id=@x", new { x = 1 }).ExecuteCommand();