Home Dashboard Directory Help

Implement caching in Entity Framework. by Shimmy Weitzhandler


 as Postponed Help for as Postponed

Sign in
to vote
Type: Suggestion
ID: 511785
Opened: 11/18/2009 6:22:20 AM
Access Restriction: Public


Working from a remote client computer and transfering data, you find yourself in a need to cache your entities.

You should be able to do it, then when running your application easily reattaching the objects, or working against a local cache instead of the remote SQL server for all the entities that has already been retrieved.
Sign in to post a comment.
Posted by Microsoft on 11/19/2009 at 8:58 AM
Thank you again for your feedback. Caching is an important issue and we are looking into ways to integrate more out-of-the box caching solutions into the Entity Framework.

Currently the EF only supports a first level cache out of the box. First level caching is basically just identity resolution of entities in query results. All queries still hit the server and bring back full entity results.

There is a caching provider that wraps your store provider that introduces a second level cache using Velocity. This is part of the WrappingProviders SDK on Code Gallery:

There is also a blog post with more details here:

Look for more caching features in a future release of EF.

Jeff Derstadt
Entity Framework Team
Posted by Microsoft on 11/19/2009 at 12:12 AM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.