diff --git a/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs b/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs index 784a77ba7..4461d5866 100644 --- a/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs +++ b/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs @@ -28,7 +28,7 @@ namespace SqlSugar string sql = DeleteBuilder.ToSqlString(); var paramters = DeleteBuilder.Parameters==null?null:DeleteBuilder.Parameters.ToArray(); RestoreMapping(); - return Db.GetInt(sql, paramters); + return Db.ExecuteCommand(sql, paramters); } public IDeleteable AS(string tableName) {