Link to home
Start Free TrialLog in
Avatar of scm0sml
scm0sml

asked on

disposing of my dbcontext/unitofwork c#4

I have a unit of work which declares a private e.f 4.1 dbcontext and because of an implemented interface has a Dispose():

public void Dispose()
    {
        _context.Dispose();   
    }

Open in new window


Is that enough to shut down any connections etc or should I be doing more?
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of scm0sml
scm0sml

ASKER

ah yeah that looks like it!

Thanks