How do I cache query results using LINQ?

Posted by Vince on Stack Overflow See other posts from Stack Overflow or by Vince
Published on 2010-05-02T11:38:53Z Indexed on 2010/05/02 11:47 UTC
Read the original article Hit count: 190

Filed under:
|
|

Hi,

Is there any way to cache LINQ to SQL queries by looking at the parameters that were previously passed and bypass the database all together?

I know L2S caches some database calls, but I'm looking for a permanant solution as in, even if the applciation restarts, that cache reloads and never asks the database again.

Are there any frameworks for C#?

© Stack Overflow or respective owner

Related posts about c#

Related posts about linq-to-sql