Skip to content

Commit d870c5e

Browse files
committed
- 优化 表达式树解析;
1 parent 0d2d517 commit d870c5e

File tree

2 files changed

+116
-0
lines changed

2 files changed

+116
-0
lines changed

FreeSql/FreeSql.xml

Lines changed: 112 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FreeSql/Internal/CommonExpression.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,6 +2269,10 @@ public static object ExpressionGetValue(Expression exp, out bool success)
22692269
else
22702270
return Expression.Lambda(exp).Compile().DynamicInvoke();
22712271
break;
2272+
case ExpressionType.Call:
2273+
if (exp.IsParameter() == false)
2274+
return Expression.Lambda(exp).Compile().DynamicInvoke();
2275+
break;
22722276
}
22732277
while (expStack.Any())
22742278
{

0 commit comments

Comments
 (0)