Skip to content

Commit

Permalink
Merge pull request #49 from codekgithub/master
Browse files Browse the repository at this point in the history
and前增加空格,避免拼接where条件报错
  • Loading branch information
nnhy authored Oct 29, 2024
2 parents 6c86acb + 07ffb5e commit 1da7959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XCode/DataAccessLayer/DAL_Mapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ public Int32 Delete(String tableName, Object where)
var i = 0;
foreach (var pi in where.GetType().GetProperties(true))
{
if (i++ > 0) sb.Append("And ");
if (i++ > 0) sb.Append(" And ");

var p = Db.CreateParameter(pi.Name, pi.GetValue(where, null), pi.PropertyType);
dps.Add(p);
Expand Down

0 comments on commit 1da7959

Please sign in to comment.