This project is read-only.

Disposing Entities Inside controller

Jul 27, 2011 at 11:51 PM
Edited Jul 27, 2011 at 11: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)

I read articles on, 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.