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


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

how to make ActiveRecord bump updated_at on new has_many association

ruby-on-rails activerecord

When adding records to a has_many association and saving the parent, that parent's updated_at is not bumped:

INotifyPropertyChanged in WPF

c# wpf data-binding inotifypropertychanged

Try to understand WPF. This is my test classes:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.