Add a Linq clause to a Iqueryable object

I have a method who get a Iqueryable object get from a LINQ Query On this object, i want to add a LINQ clause : .skip(20) How can i do that from my method ?

Thanks by advance

Answers


You can't "add" a clause to an existing query, because the queries themselves are immutable - but you can create a new query which is the existing one but with an extra clause:

IQueryable<Foo> newQuery = oldQuery.Skip(20);

Need Your Help

Setting up Python with WSGI on Apache for a directory

python python-2.7 mod-wsgi wsgi

I am trying to setup Python with WSGI for a particular directory on Apache but I am getting the following error: