Skip to content

Commit

Permalink
- 修复 UpdateJoin SetIf逻辑判断问题
Browse files Browse the repository at this point in the history
  • Loading branch information
d4ilys committed Oct 27, 2023
1 parent 656ae2f commit 5b05824
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FreeSql/Internal/CommonProvider/UpdateJoinProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ public IUpdateJoin<T1, T2> WhereIf(bool condition, Expression<Func<T1, T2, bool>
public IUpdateJoin<T1, T2> Set(Expression<Func<T1, T2, bool>> exp) => SetIf(true, exp);
public IUpdateJoin<T1, T2> SetIf(bool condition, Expression<Func<T1, T2, bool>> exp)
{
if (condition == false) return this;
var body = exp?.Body;
var nodeType = body?.NodeType;
if (nodeType == ExpressionType.Convert)
Expand Down

0 comments on commit 5b05824

Please sign in to comment.