From 4ddd98bdc0502285d7d9955293657adc14e5b704 Mon Sep 17 00:00:00 2001 From: "610262374@qq.com" <610262374@qq.com> Date: Fri, 12 Oct 2018 16:56:13 +0800 Subject: [PATCH] BackUpTable BUG --- .../SqlServerTest/Demos/5_CodeFirst.cs | 2 +- .../Abstract/DbMaintenanceProvider/Methods.cs | 2 +- .../DbMaintenance/SqliteDbMaintenance.cs | 9 ++++++++- Src/Asp.Net/SqliteTest/Config.cs | 2 +- .../SqliteTest/DataBase/SqlSugar4xTest.sqlite | Bin 475136 -> 475136 bytes Src/Asp.Net/SqliteTest/Demos/5_CodeFirst.cs | 2 +- 6 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Src/Asp.Net/SqlServerTest/Demos/5_CodeFirst.cs b/Src/Asp.Net/SqlServerTest/Demos/5_CodeFirst.cs index 965991457..f8810c375 100644 --- a/Src/Asp.Net/SqlServerTest/Demos/5_CodeFirst.cs +++ b/Src/Asp.Net/SqlServerTest/Demos/5_CodeFirst.cs @@ -49,7 +49,7 @@ namespace OrmTest.Demo //db.CodeFirst.BackupTable().InitTables(typeof(CodeTable),typeof(CodeTable2)); //No backup table - db.CodeFirst.InitTables(typeof(CodeTable),typeof(CodeTable2)); + db.CodeFirst.BackupTable().InitTables(typeof(CodeTable),typeof(CodeTable2)); } } } diff --git a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs index 5a71d5ea7..d4c198446 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs @@ -195,7 +195,7 @@ namespace SqlSugar { oldTableName = this.SqlBuilder.GetTranslationTableName(oldTableName); newTableName = this.SqlBuilder.GetTranslationTableName(newTableName); - string sql = string.Format(this.BackupTableSql, newTableName, oldTableName, maxBackupDataRows); + string sql = string.Format(this.BackupTableSql, maxBackupDataRows, newTableName, oldTableName); this.Context.Ado.ExecuteCommand(sql); return true; } diff --git a/Src/Asp.Net/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs b/Src/Asp.Net/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs index 859c519fd..0642ae87a 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs @@ -209,7 +209,14 @@ namespace SqlSugar return result; } } - + public override bool BackupTable(string oldTableName, string newTableName, int maxBackupDataRows = int.MaxValue) + { + oldTableName = this.SqlBuilder.GetTranslationTableName(oldTableName); + newTableName = this.SqlBuilder.GetTranslationTableName(newTableName); + string sql = string.Format(this.BackupTableSql, newTableName, oldTableName, maxBackupDataRows); + this.Context.Ado.ExecuteCommand(sql); + return true; + } public override bool CreateTable(string tableName, List columns, bool isCreatePrimaryKey = true) { if (columns.HasValue()) diff --git a/Src/Asp.Net/SqliteTest/Config.cs b/Src/Asp.Net/SqliteTest/Config.cs index 37a7134bd..f31694842 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=F:\GIT\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 189e007072ae487019a5eae9db52c323184cd118..d972550263e10473b0ad946ad9be334009d3c342 100644 GIT binary patch delta 32815 zcmb`Q$+KkDwchJO(HBr9f#|71AcPRjJ^e}400JQzH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@@ -46,7 +46,7 @@ namespace OrmTest.Demo //db.CodeFirst.BackupTable().InitTables(typeof(CodeTable),typeof(CodeTable2)); //No backup table - db.CodeFirst.InitTables(typeof(CodeTable),typeof(CodeTable2)); + db.CodeFirst.BackupTable().InitTables(typeof(CodeTable),typeof(CodeTable2)); } } }