ObjectContexts will eventually be deleted if your application does not explicitly hold onto them, but in general you should try to destroy them deterministically as soon as possible after you are done with them. In most cases, they will connect to the database connections until they are deleted. In my current web application, we use the IoC container (Autofac) to ensure that any ObjectContext object opened at the time of the request is located at the end of the request and does not have to wait for garbage collection.
source share