diff --git a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs index 9a4fbecea..38b42a500 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs @@ -14,6 +14,10 @@ namespace SqlSugar { return db.Ado.SqlQuery(this.GetDataBaseSql); } + public virtual List GetDataBaseList() + { + return this.Context.Ado.SqlQuery(this.GetDataBaseSql); + } public virtual List GetViewInfoList(bool isCache = true) { string cacheKey = "DbMaintenanceProvider.GetViewInfoList" + this.Context.CurrentConnectionConfig.ConfigId; diff --git a/Src/Asp.Net/SqlSugar/Interface/IDbMaintenance.cs b/Src/Asp.Net/SqlSugar/Interface/IDbMaintenance.cs index a39de2c10..dcde3ef14 100644 --- a/Src/Asp.Net/SqlSugar/Interface/IDbMaintenance.cs +++ b/Src/Asp.Net/SqlSugar/Interface/IDbMaintenance.cs @@ -10,6 +10,7 @@ namespace SqlSugar #region DML List GetDataBaseList(SqlSugarClient db); + List GetDataBaseList(); List GetViewInfoList(bool isCache=true); List GetTableInfoList(bool isCache=true); List GetColumnInfosByTableName(string tableName,bool isCache=true);