views:

524

answers:

2

I was trying to find out which Entity Framework objects, if any, remain live after the end of an HTTP request that is being handled by ASP .Net?

i.e. Does an ASP .Net application benefit from any of the Entity Framework caching mechanisms across different requests?

This article describes the operations that are occurring under the hood:

http://msdn.microsoft.com/en-us/library/cc853327.aspx

So I am wondering whether all of these things are repeated for every http request.

A: 

plz check this article

http://www.codeproject.com/KB/aspnet/CachingInASPNET.aspx

Muhammad Akhtar
Thanks Muhammad, that's a good article on caching in general. I am more specifically referring to the query caching that entity framework does internally, as well as the re-use of the views that it generates.
RobD
+1  A: 

According to, "Programming Enttity Framework (O'Reilly)" by Julia Lerman, The ObjectContext does NOT survive postbacks

RobD