I've been looking at implementing these patterns in a project I am working on. The UoW has the database context and then instantiates a number of repositories with that context. My question is to do with disposing the context. A lot of articles I have seen have the repository as IDisposable and they then dispose of the context. This has confused me no end, am I missing something or (in my case) should it just be the UoW that disposes of the context? Also, should I be implementing IDisposable on my repositories?
Thanks
Chris