I have a method that returns an
Expression<Func<T, bool>>
When I use this as a predicate in a where clause in EF this works fine, until I try to add more items to the predicate with Expression.Or() I run into the following exception:
The parameter 'xxx' was not bound in the specified LINQ to Entities query expression.
Is there some way around this? What causes this exactly?
SOLVED
using http://blogs.msdn.com/b/meek/archive/2008/05/02/linq-to-entities-combining-predicates.aspx