ObjectContext.Dispose Method (Boolean)
Releases the resources used by the object context.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
This method closes the connection. After ToTraceString method, will cause an exception. Operations that do not require an open connection, such as composing a query or attaching objects, will not cause an exception.is called, operations that require an open connection, such as executing a query or calling the
Available since 3.5