diff --git a/FreeSql/FreeSqlBuilder.cs b/FreeSql/FreeSqlBuilder.cs index 91ea67463..8b0854a98 100644 --- a/FreeSql/FreeSqlBuilder.cs +++ b/FreeSql/FreeSqlBuilder.cs @@ -585,7 +585,7 @@ public IFreeSql Build() return Expression.IfThenElse( Expression.TypeIs(valueExp, type2), Expression.Return(returnTarget, valueExp), - Expression.Return(returnTarget, Expression.Convert(valueExpRet, typeof(object))) + Expression.Return(returnTarget, Expression.Convert(valueExpRet, typeof(object))) //此时不能设置 type2 ); } return null;