How can I store a LINQ query (i.e. of type IQueryable<T>
) in SQL Server session state or any other State Server?
You can't serialize the IQueryable
but you may be able to serialize the expression tree which generates that IQueryable
. Check out the following question and associated MSDN link.