diff --git a/Src/Asp.Net/SqlSugar/SimpleClient.cs b/Src/Asp.Net/SqlSugar/SimpleClient.cs index 511d39c4b..5deae4023 100644 --- a/Src/Asp.Net/SqlSugar/SimpleClient.cs +++ b/Src/Asp.Net/SqlSugar/SimpleClient.cs @@ -269,7 +269,7 @@ namespace SqlSugar } public virtual async Task DeleteByIdAsync(dynamic id) { - return await this.Context.Deleteable().In(id).ExecuteCommand() > 0; + return await this.Context.Deleteable().In(id).ExecuteCommandAsync() > 0; } public virtual async Task DeleteByIdsAsync(dynamic[] ids) {