I created a data repository that contains an instance of my Entity Framework entity. And I want to use a "using" statement to manage it's immediate disposal. So I implement IDisposable and created the following Dispose() function.
entities = new MyEF4object();
public void Dispose()
entities = null;
is this right? I want to terminate and garbage collect the database connection upon exit from the function where this object is created and used.
Will I create problems setting it to null?