View Single Post
  #1 (permalink)  
Old July 15th, 2013, 12:13 AM
pabo13 pabo13 is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jul 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 11 - Generic Repository

First of all, let me confirm that this book is indeed excellent!
I'm a bit of a newb to design patterns and this book has really helped me out.
I'm really looking forward to Scott's upcoming release covering DDD.
On to my question.
In chapter 11 (page 463), the repository has a dependency on IUnitOfWork, but other than being injected via constructor, that dependency is not used by the repository's add, remove, or save methods. The above methods deal with the ISession directly. I'm a little confused, and maybe being a bit nitpicky, but ideally, shouldn't the repository's add, remove, and save method delegate their work to the injected unit of work?
Reply With Quote