Skip to content

Commit 5b05824

Browse files
committed
- 修复 UpdateJoin SetIf逻辑判断问题
1 parent 656ae2f commit 5b05824

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

FreeSql/Internal/CommonProvider/UpdateJoinProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ public IUpdateJoin<T1, T2> WhereIf(bool condition, Expression<Func<T1, T2, bool>
169169
public IUpdateJoin<T1, T2> Set(Expression<Func<T1, T2, bool>> exp) => SetIf(true, exp);
170170
public IUpdateJoin<T1, T2> SetIf(bool condition, Expression<Func<T1, T2, bool>> exp)
171171
{
172+
if (condition == false) return this;
172173
var body = exp?.Body;
173174
var nodeType = body?.NodeType;
174175
if (nodeType == ExpressionType.Convert)

0 commit comments

Comments
 (0)