mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
- 增加 表达式对基类转换的解析,如:Where(a => (a as BaseEntity).IsDeleted == true);
This commit is contained in:
parent
de28c38d70
commit
c403fa6fad
@ -876,7 +876,7 @@ namespace FreeSql.Internal
|
||||
if (oper2.NodeType == ExpressionType.Parameter)
|
||||
{
|
||||
var oper2Parm = oper2 as ParameterExpression;
|
||||
expStack.Push(Expression.Parameter(exp2.Type, oper2Parm.Name));
|
||||
expStack.Push(exp2.Type.IsAbstract || exp2.Type.IsInterface ? oper2Parm : Expression.Parameter(exp2.Type, oper2Parm.Name));
|
||||
}
|
||||
else
|
||||
expStack.Push(oper2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user