Wrox Programmer Forums
|
BOOK: Professional ASP.NET Design Patterns
This is the forum to discuss the Wrox book Professional ASP.NET Design Patterns by Scott Millett; ISBN: 978-0-470-29278-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET Design Patterns section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 15th, 2013, 12:13 AM
Registered User
 
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?
 
Old February 25th, 2014, 05:25 PM
elbandit's Avatar
Wrox Author
 
Join Date: May 2007
Posts: 107
Thanks: 10
Thanked 17 Times in 15 Posts
Default

Hi pabo13,

Here is are some updated examples of how to use the repository pattern with some populate persistence frameworks that feature in my new book.

https://github.com/elbandit/PPPDDDChap19

Cheers
Scott





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 - Creating Generic Classes mhanson BOOK: Professional C# 4.0 and .NET 4 0 November 1st, 2010 02:18 AM
Chapter 2, system.collection.generic.list Ziaulhassan BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 2 January 2nd, 2010 03:51 AM
chapter 11 figure 11-7 relative positioning pelopito BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 November 29th, 2007 06:11 AM
Chapter 11 zaidqais Visual Basic 2005 Basics 0 June 2nd, 2006 04:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.