diff --git a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs
index c1682a526..37281ef07 100644
--- a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs
+++ b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs
@@ -166,6 +166,24 @@ namespace SqlSugar
#endregion
#region DDL
+ public virtual bool DropView(string viewName)
+ {
+ viewName = this.SqlBuilder.GetNoTranslationColumnName(viewName);
+ this.Context.Ado.ExecuteCommand($" DROP VIEW {viewName} ");
+ return true;
+ }
+ public virtual bool DropFunction(string funcName)
+ {
+ funcName = this.SqlBuilder.GetNoTranslationColumnName(funcName);
+ this.Context.Ado.ExecuteCommand($" DROP FUNCTION {funcName} ");
+ return true;
+ }
+ public virtual bool DropProc(string procName)
+ {
+ procName = this.SqlBuilder.GetNoTranslationColumnName(procName);
+ this.Context.Ado.ExecuteCommand($" DROP PROCEDURE {procName} ");
+ return true;
+ }
///
///by current connection string
///
diff --git a/Src/Asp.Net/SqlSugar/Interface/IDbMaintenance.cs b/Src/Asp.Net/SqlSugar/Interface/IDbMaintenance.cs
index b47ed02d1..f1f777ea8 100644
--- a/Src/Asp.Net/SqlSugar/Interface/IDbMaintenance.cs
+++ b/Src/Asp.Net/SqlSugar/Interface/IDbMaintenance.cs
@@ -37,7 +37,10 @@ namespace SqlSugar
bool CreateIndex(string tableName, string [] columnNames, bool isUnique=false);
bool CreateIndex(string tableName, string[] columnNames, string IndexName, bool isUnique = false);
bool DropTable(string tableName);
- bool DropTable(params string[] tableName);
+ bool DropView(string viewName);
+ bool DropFunction(string funcName);
+ bool DropProc(string procName);
+; bool DropTable(params string[] tableName);
bool DropTable(params Type[] tableEntityTypes);
bool DropTable();
bool DropTable();