I have a request for a feature to be able to save a user's search for later.

Right now I'm building LINQ statements on the fly based on what the user has specified.

So I started wondering, is there an easy way for me to simply take the query that the user built, and persist it somewhere, preferably my database, so that I can retrieve it later?

Is there some way of persisting the query as XML or perhaps JSON, and then reconstituting the query later?