Browse Source

Delete Bug

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
60ba547f6f
  1. 2
      SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs

2
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<T> AS(string tableName)
{

Loading…
Cancel
Save