From 99db4d6d873fcf6b596ef0aac14d8ae721cb78b5 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 25 May 2017 11:50:08 +0800 Subject: [PATCH] - --- OrmTest/Demo/Update.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OrmTest/Demo/Update.cs b/OrmTest/Demo/Update.cs index 1a6585aaa..793dfce72 100644 --- a/OrmTest/Demo/Update.cs +++ b/OrmTest/Demo/Update.cs @@ -49,6 +49,11 @@ namespace OrmTest.Demo var t10 = db.Updateable() .UpdateColumns(it => new Student() { Name="a",CreateTime=DateTime.Now }) .Where(it => it.Id == 11).ExecuteCommand(); + + //Rename + db.MappingTables.Add("School", "Student"); + db.Updateable().UpdateColumns(it => new School() { Name = "jack" }).Where(it => it.Id == 1).ExecuteCommand(); + //Update Student set Name='jack' Where Id=1 } public static SqlSugarClient GetInstance() {