From: Andrei A. (JIRA) <nh...@gm...> - 2011-05-11 14:42:58
|
[ http://216.121.112.228/browse/NH-2689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21059#action_21059 ] Andrei Alecu commented on NH-2689: ---------------------------------- Instead of query.Where(x=>expression(x)) try just query.Where(expression) and see if you still get that error. x=>expression(x) will re-wrap the original expression into something else, hence your error. > Where clause error > ------------------ > > Key: NH-2689 > URL: http://216.121.112.228/browse/NH-2689 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Alexander Kozlenko > Priority: Blocker > Attachments: nh-v3.1.0.4000-bug-1.txt > > > Have a query as "query.Where(x => expression(x)).ToList()" where "expression" is "LambdaExpression.Lambda(Expression.IsTrue(...), ...)" which trows this exception on data fetch. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |