There are two problems here:
1) If you pass the predicate in such a way that you always want to return true, then this is not so much a predicate. You may be able to omit any call you are trying to make.
2) If you want to simply return true, you can simply use the more detailed lambda syntax to get what you want:
sample.AsQueryable().Where((x) => { return true; });
More detailed syntax allows you to specify closer to an anonymous function, while still being an expression.
source share