For my application I want to be able (if possible) to execute a LINQ to SQL query outside of it's context.
The reason this would be nice for me is that I would store the IQueryable in objects in the cache. When I later need them they would be executed and the cached object would be updated with the items from the query.
The reason I want to be able to do this unorthodox thing is because of how the CMS I use is built.
Have anyone done anything like this before?
Edit, Further Explanation: In the CMS I work with (EPiServer) I have built and attached a Custom Page Provider. Which lets me make Pages of any datasource. In it I am responsible with creating PageData for the CMS. The PageData consists of Properties which I also populate in my Provider.
My method that builds PageData gets called when it does a listing aswell as getting a specific page. When it does a listing it uses only a small amount of the properties needed in the PageData so I'd like to instead of setting a result set to a property, I'd like to set an query. In that way, the queries to the database will only be executed when needed.
The PageData object is after my creation Cached. But when it's not cached I don't want to make 7 queries against the database for just a listing.