mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Synchronization code
This commit is contained in:
@@ -214,6 +214,13 @@ namespace SqlSugar
|
||||
this.Context.Ado.ExecuteCommand($" DROP INDEX {indexName} ");
|
||||
return true;
|
||||
}
|
||||
public virtual bool DropIndex(string indexName,string tableName)
|
||||
{
|
||||
indexName = this.SqlBuilder.GetNoTranslationColumnName(indexName);
|
||||
tableName= this.SqlBuilder.GetNoTranslationColumnName(tableName);
|
||||
this.Context.Ado.ExecuteCommand($" DROP INDEX {indexName} ON {tableName}");
|
||||
return true;
|
||||
}
|
||||
public virtual bool DropView(string viewName)
|
||||
{
|
||||
viewName = this.SqlBuilder.GetNoTranslationColumnName(viewName);
|
||||
|
@@ -43,6 +43,7 @@ namespace SqlSugar
|
||||
bool DropTable(string tableName);
|
||||
bool DropView(string viewName);
|
||||
bool DropIndex(string indexName);
|
||||
bool DropIndex(string indexName, string tableName);
|
||||
bool DropFunction(string funcName);
|
||||
bool DropProc(string procName);
|
||||
bool DropTable(params string[] tableName);
|
||||
|
Reference in New Issue
Block a user