mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 修复 UpdateJoin SetIf逻辑判断问题
This commit is contained in:
parent
656ae2f3bb
commit
5b0582483c
@ -169,6 +169,7 @@ namespace FreeSql.Internal.CommonProvider
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user