- 修复 MapType 表达式解析时的层级 bug;

This commit is contained in:
28810
2019-08-29 21:51:01 +08:00
parent 2db48bbcf9
commit ce392689d7
2 changed files with 4 additions and 0 deletions

View File

@ -528,6 +528,7 @@ namespace FreeSql.Internal
var condExp = exp as ConditionalExpression;
return $"case when {ExpressionLambdaToSql(condExp.Test, tsc)} then {ExpressionLambdaToSql(condExp.IfTrue, tsc)} else {ExpressionLambdaToSql(condExp.IfFalse, tsc)} end";
case ExpressionType.Call:
tsc.mapType = null;
var exp3 = exp as MethodCallExpression;
var callType = exp3.Object?.Type ?? exp3.Method.DeclaringType;
switch (callType.FullName)