diff --git a/Src/Asp.Net/MySqlTest/UnitTest/Update.cs b/Src/Asp.Net/MySqlTest/UnitTest/Update.cs index 66f97dcd3..44cc71021 100644 --- a/Src/Asp.Net/MySqlTest/UnitTest/Update.cs +++ b/Src/Asp.Net/MySqlTest/UnitTest/Update.cs @@ -116,10 +116,10 @@ namespace OrmTest.UnitTest string name = "x"; var t10 = db.Updateable().UpdateColumns(it => new Student() { Name =name, SchoolId=updateObj.SchoolId }).Where(it=>it.Id==11).ToSql(); base.Check(@"UPDATE `STudent` SET - `SchoolId` = @Const0 , `Name` = @const3 WHERE ( `ID` = @Id1 )", new List() { - new SugarParameter("@const3","x"), - new SugarParameter("@Const0",18), - new SugarParameter("@Id1",11)}, + `SchoolId` = @Const1 , `Name` = @Const0 WHERE ( `ID` = @Id2 )", new List() { + new SugarParameter("@Const1",18), + new SugarParameter("@Const0","x"), + new SugarParameter("@Id2",11)}, t10.Key, t10.Value, "Update 10 error" diff --git a/Src/Asp.Net/SqliteTest/Config.cs b/Src/Asp.Net/SqliteTest/Config.cs index 37a7134bd..a506f50ff 100644 --- a/Src/Asp.Net/SqliteTest/Config.cs +++ b/Src/Asp.Net/SqliteTest/Config.cs @@ -8,6 +8,6 @@ namespace OrmTest { public class Config { - public static string ConnectionString = @"DataSource=F:\MyOpenSource\SqlSugar4.XNew\SqlSugar\Src\Asp.Net\SqliteTest\DataBase\SqlSugar4xTest.sqlite"; + public static string ConnectionString = @"DataSource=D:\MyGit\SqlSugar\Src\Asp.Net\SqliteTest\DataBase\SqlSugar4xTest.sqlite"; } } diff --git a/Src/Asp.Net/SqliteTest/DataBase/SqlSugar4xTest.sqlite b/Src/Asp.Net/SqliteTest/DataBase/SqlSugar4xTest.sqlite index e01d466e3..40f960b1a 100644 Binary files a/Src/Asp.Net/SqliteTest/DataBase/SqlSugar4xTest.sqlite and b/Src/Asp.Net/SqliteTest/DataBase/SqlSugar4xTest.sqlite differ diff --git a/Src/Asp.Net/SqliteTest/UnitTest/Update.cs b/Src/Asp.Net/SqliteTest/UnitTest/Update.cs index c31c009cd..39e153574 100644 --- a/Src/Asp.Net/SqliteTest/UnitTest/Update.cs +++ b/Src/Asp.Net/SqliteTest/UnitTest/Update.cs @@ -116,10 +116,10 @@ namespace OrmTest.UnitTest string name = "x"; var t10 = db.Updateable().UpdateColumns(it => new Student() { Name =name, SchoolId=updateObj.SchoolId }).Where(it=>it.Id==11).ToSql(); base.Check(@"UPDATE `STudent` SET - `SchoolId` = @Const0 , `Name` = @const3 WHERE ( `ID` = @Id1 )", new List() { - new SugarParameter("@const3","x"), - new SugarParameter("@Const0",18), - new SugarParameter("@Id1",11)}, + `SchoolId` = @Const1 , `Name` = @Const0 WHERE ( `ID` = @Id2 )", new List() { + new SugarParameter("@Const1",18), + new SugarParameter("@Const0","x"), + new SugarParameter("@Id2",11)}, t10.Key, t10.Value, "Update 10 error"