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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -