[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 593
  • Last Modified:

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?
0
scm0sml
Asked:
scm0sml
1 Solution
 
käµfm³d 👽Commented:
Going by the docs, it should.
0
 
scm0smlAuthor Commented:
ah yeah that looks like it!

Thanks
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now