How to substitute Expression<Func<T,bool>> into where clause of linq to sql expression
I would like to set the following predicate to where clause of linq statement written in expression syntax.

    Expression<Func<Purchase, bool>> condition = p => p.Price > 100;

    from purchase in dc.GetTable<Purchase>()
    where condition
    select ...

However, compiler cannot determine which Where to use: IQuaryable<> or IEnumerable<>.
How this problem could be solved without converting linq expression to method chains?
How to substitute Expression<Func<T,bool>> into where clause of linq to sql expression
===

I would like to set the following predicate to where clause of linq statement written in expression syntax.

    Expression<Func<Purchase, bool>> condition = p => p.Price > 100;

    from purchase in dc.GetTable<Purchase>()
    where condition
    select ...

However, compiler cannot determine which Where to use: IQuaryable<> or IEnumerable<>.
How this problem could be solved without converting linq expression to method chains?