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 -- You received this message because you are subscribed to the Google Groups "nhusers" group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/_MB8oImqlBsJ. 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.
