Good morning, with NH 3.1
i'm trying to combine 2 linq expression ( p=>p.Name=="foo" or p=>p.Name=="bar")
both Expression<Func<Person,bool>>
I found some implementation of the "combine" function, but if I use Expression.Or for the combining method it give me
Unable to cast object of type 'NHibernate.Hql.Ast.HqlBitwiseOr' to type 'NHibernate.Hql.Ast.HqlBooleanExpression'.
if indeed I use Expression.OrElse, it give me only the second filter, not the or