Hi, I'm extending NHibernate Linq provider to support my custom
predicates in Where clause. But I've got one problem. I cant' join two
or more HqlExpression with boolean or operator.
Here is my code (only important lines provided)
HqlExpression resultNode = treeBuilder.False();
foreach ()
{
HqlExpression condition = treeBuilder.Like(leftExpression,
rigthExpression);
resultNode =
treeBuilder.BooleanOr(resultNode.AsBooleanExpression(),
condition.AsBooleanExpression());
}
return resultNode;
The problem is that AsBooleanException throws that it cannot cast
HqlExpression to HqlBooleanExpression. How should it be done.
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.