asp.net mvc 2 - Caching Entity Framework EntityTypes -


i have entitytypes generated database using entity framework 4. use cache store of these entitytypes performance reasons. safe following provided object used read-only actions:

context.students.mergeoption = mergeoption.notracking; var students = context.students.where(s => s.name == "adam").tolist(); cache["students"] = students; 

thanks.

one way use ef cache provider. use web server's cache. make sure not prematurely optimizing, or optimizing wrong thing. doing make life miserable. better optimize web site front end caching.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -