Disposing Entities Inside controller

Jul 27, 2011 at 10:51 PM
Edited Jul 27, 2011 at 10:56 PM

Why entities have not been disposed inside controllers??, I was expecting some codes like below inside controller.

 

        protected override void Dispose(bool disposing)
        {
            storeDB.Dispose();
            base.Dispose(disposing);
        }


I read articles on asp.net/mvc, they in their tutorial have written 'There is need to dispose context created inside controllers,to close the connection'.
Is there any specific reason that you have chosen not to dispose the entities or may be Iam missing something.