mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Synchronous code
This commit is contained in:
@@ -283,6 +283,13 @@ namespace SqlSugar
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
public override 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 override bool SetAutoIncrementInitialValue(string tableName, int initialValue)
|
||||
{
|
||||
initialValue++;
|
||||
|
@@ -322,6 +322,13 @@ namespace SqlSugar
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
public override 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 override bool SetAutoIncrementInitialValue(string tableName,int initialValue)
|
||||
{
|
||||
this.Context.Ado.ExecuteCommand($"DBCC CHECKIDENT ('"+ tableName + $"', RESEED, {initialValue})");
|
||||
|
Reference in New Issue
Block a user