mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Synchronous code
This commit is contained in:
parent
e30d744b69
commit
79ac1f4ca6
@ -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})");
|
||||
|
Loading…
Reference in New Issue
Block a user