Browse Source

Update db.DbMain.GetDataBastList

pull/30/head
sunkaixuan 2 years ago
parent
commit
76eb610fa2
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs
  2. 1
      Src/Asp.Net/SqlSugar/Interface/IDbMaintenance.cs

4
Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs

@ -14,6 +14,10 @@ namespace SqlSugar
{
return db.Ado.SqlQuery<string>(this.GetDataBaseSql);
}
public virtual List<string> GetDataBaseList()
{
return this.Context.Ado.SqlQuery<string>(this.GetDataBaseSql);
}
public virtual List<DbTableInfo> GetViewInfoList(bool isCache = true)
{
string cacheKey = "DbMaintenanceProvider.GetViewInfoList" + this.Context.CurrentConnectionConfig.ConfigId;

1
Src/Asp.Net/SqlSugar/Interface/IDbMaintenance.cs

@ -10,6 +10,7 @@ namespace SqlSugar
#region DML
List<string> GetDataBaseList(SqlSugarClient db);
List<string> GetDataBaseList();
List<DbTableInfo> GetViewInfoList(bool isCache=true);
List<DbTableInfo> GetTableInfoList(bool isCache=true);
List<DbColumnInfo> GetColumnInfosByTableName(string tableName,bool isCache=true);

Loading…
Cancel
Save