diff --git a/Src/Asp.Net/SqlServerTest/Program.cs b/Src/Asp.Net/SqlServerTest/Program.cs index 071b3c8e0..31943712d 100644 --- a/Src/Asp.Net/SqlServerTest/Program.cs +++ b/Src/Asp.Net/SqlServerTest/Program.cs @@ -8,7 +8,7 @@ namespace OrmTest { static void Main(string[] args) { - //OldTestMain.Init(); + OldTestMain.Init(); Demo1_SqlSugarClient.Init(); diff --git a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs index b77535970..cc8aef63f 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs @@ -237,7 +237,7 @@ namespace SqlSugar } public virtual bool AddTableRemark(string tableName, string description) { - string sql = string.Format(this.AddTableRemarkSql,this.SqlBuilder.GetTranslationTableName(tableName), description); + string sql = string.Format(this.AddTableRemarkSql,tableName, description); this.Context.Ado.ExecuteCommand(sql); return true; } diff --git a/Src/Asp.Net/SqlSugar/Interface/ISqlSugarClient.cs b/Src/Asp.Net/SqlSugar/Interface/ISqlSugarClient.cs index 82cabfc4e..eab5c0fc4 100644 --- a/Src/Asp.Net/SqlSugar/Interface/ISqlSugarClient.cs +++ b/Src/Asp.Net/SqlSugar/Interface/ISqlSugarClient.cs @@ -43,7 +43,6 @@ namespace SqlSugar IDeleteable Deleteable(List pkValue) where T : class, new(); IDeleteable Deleteable(List deleteObjs) where T : class, new(); IDeleteable Deleteable(T deleteObj) where T : class, new(); - void Dispose(); DateTime GetDate(); SimpleClient GetSimpleClient(); SimpleClient GetSimpleClient() where T : class, new(); diff --git a/Src/Asp.Net/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs b/Src/Asp.Net/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs index fb4a5083e..9abab49c7 100644 --- a/Src/Asp.Net/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs +++ b/Src/Asp.Net/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs @@ -234,6 +234,12 @@ namespace SqlSugar #endregion #region Methods + public override bool AddTableRemark(string tableName, string description) + { + string sql = string.Format(this.AddTableRemarkSql, this.SqlBuilder.GetTranslationTableName(tableName), description); + this.Context.Ado.ExecuteCommand(sql); + return true; + } public override bool CreateTable(string tableName, List columns, bool isCreatePrimaryKey = true) { if (columns.HasValue())