From 76eb610fa24afe8f9ec8ed08f246260b01e84707 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 17 Dec 2022 10:43:35 +0800 Subject: [PATCH] Update db.DbMain.GetDataBastList --- .../SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs | 4 ++++ Src/Asp.Net/SqlSugar/Interface/IDbMaintenance.cs | 1 + 2 files changed, 5 insertions(+) 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);