mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	- 增加 表达式对基类转换的解析,如:Where(a => (a as BaseEntity).IsDeleted == true);
This commit is contained in:
		@@ -876,7 +876,7 @@ namespace FreeSql.Internal
 | 
				
			|||||||
                                if (oper2.NodeType == ExpressionType.Parameter)
 | 
					                                if (oper2.NodeType == ExpressionType.Parameter)
 | 
				
			||||||
                                {
 | 
					                                {
 | 
				
			||||||
                                    var oper2Parm = oper2 as ParameterExpression;
 | 
					                                    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
 | 
					                                else
 | 
				
			||||||
                                    expStack.Push(oper2);
 | 
					                                    expStack.Push(oper2);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user