Skip to content

Commit

Permalink
and前增加空格,避免拼接where条件报错
Browse files Browse the repository at this point in the history
  • Loading branch information
codekgithub committed Oct 29, 2024
1 parent 6c86acb commit 07ffb5e
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 07ffb5e

Please sign in to comment.