mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Add drop index
This commit is contained in:
parent
b2616ae0e8
commit
2718b2247b
@ -174,6 +174,12 @@ namespace SqlSugar
|
||||
#endregion
|
||||
|
||||
#region DDL
|
||||
public virtual bool DropIndex(string indexName)
|
||||
{
|
||||
indexName = this.SqlBuilder.GetNoTranslationColumnName(indexName);
|
||||
this.Context.Ado.ExecuteCommand($" DROP INDEX {indexName} ");
|
||||
return true;
|
||||
}
|
||||
public virtual bool DropView(string viewName)
|
||||
{
|
||||
viewName = this.SqlBuilder.GetNoTranslationColumnName(viewName);
|
||||
|
@ -40,6 +40,7 @@ namespace SqlSugar
|
||||
bool CreateIndex(string tableName, string[] columnNames, string IndexName, bool isUnique = false);
|
||||
bool DropTable(string tableName);
|
||||
bool DropView(string viewName);
|
||||
bool DropIndex(string indexName);
|
||||
bool DropFunction(string funcName);
|
||||
bool DropProc(string procName);
|
||||
bool DropTable(params string[] tableName);
|
||||
|
Loading…
Reference in New Issue
Block a user