How do you implement caching in Linq to SQL?

Posted by Glenn Slaven on Stack Overflow See other posts from Stack Overflow or by Glenn Slaven
Published on 2008-09-01T02:13:07Z Indexed on 2010/05/21 2:10 UTC
Read the original article Hit count: 324

Filed under:
|
|
|
|

We've just started using LINQ to SQL at work for our DAL & we haven't really come up with a standard for out caching model. Previously we had being using a base 'DAL' class that implemented a cache manager property that all our DAL classes inherited from, but now we don't have that. I'm wondering if anyone has come up with a 'standard' approach to caching LINQ to SQL results?

We're working in a web environment (IIS) if that makes a difference. I know this may well end up being a subjective question, but I still think the info would be valuable.

EDIT: To clarify, I'm not talking about caching an individual result, I'm after more of an architecture solution, as in how do you set up caching so that all your link methods use the same caching architecture.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about sql