mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 修复 AsType 之后的表达式解析;#1389
This commit is contained in:
parent
36f3db5525
commit
c8ecadff29
@ -1717,7 +1717,7 @@ namespace FreeSql.Internal
|
||||
var oper2Parm = oper2 as ParameterExpression;
|
||||
if (exp2.Type.IsAbstract || exp2.Type.IsInterface || exp2.Type.IsAssignableFrom(oper2Parm.Type))
|
||||
expStack.Push(oper2Parm);
|
||||
else if (oper2Parm.Type.IsAssignableFrom(exp2.Type))
|
||||
else if (oper2Parm.Type != typeof(object) && oper2Parm.Type.IsAssignableFrom(exp2.Type))
|
||||
expStack.Push(oper2Parm);
|
||||
else
|
||||
expStack.Push(Expression.Parameter(exp2.Type, oper2Parm.Name));
|
||||
|
Loading…
x
Reference in New Issue
Block a user