Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: .NET Domain-Driven Design with C#: Problem - Design - Solution ISBN: 978-0-470-14756-6
This is the forum to discuss the Wrox book .NET Domain-Driven Design with C#: Problem - Design - Solution by Tim McCarthy; ISBN: 9780470147566
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: .NET Domain-Driven Design with C#: Problem - Design - Solution ISBN: 978-0-470-14756-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 10th, 2008, 08:52 PM
Registered User
 
Join Date: Jul 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Persistence

Hey Tim,
  Great book. I'm only through the first 2 chapters so far, but have a hard time putting it down. I look forward to downloading the application and learning from it.
  I had a question about why you chose the Enterprise Library for persistence. I have nothing against it, but I'm just tend to be on the lazy side, and like using an ORM just because it saves so much time. I particularly like LLBLGen at this point, though I'm starting to learn nHibernate. I'm thinking it should be pretty easy to plug an ORM into your framework, and I just wanted to pass the thought by you to see if you agree.

Jeff

Reply With Quote
  #2 (permalink)  
Old July 10th, 2008, 09:34 PM
Wrox Author
 
Join Date: Feb 2006
Location: San Diego, , USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Jeff, thanks for the compliment and also for buying my book!

I absolutely agree that you can use an ORM to persist data,I just intentionally left it out because I did not want to start any religious wars :-).

I also agree that it would be fairly easy to plug one in to the repository implementations. I would probably favor NHibernate since it is open source, but you can use whatever you like.

--Tim

Reply With Quote
  #3 (permalink)  
Old July 12th, 2008, 02:51 PM
Registered User
 
Join Date: Jul 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Tim

Reply With Quote
  #4 (permalink)  
Old October 19th, 2008, 04:01 PM
elbandit's Avatar
Wrox Author
Points: 569, Level: 8
Points: 569, Level: 8 Points: 569, Level: 8 Points: 569, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2007
Location: Southsea, Portsmouth, Hampshire, United Kingdom.
Posts: 104
Thanks: 11
Thanked 17 Times in 15 Posts
Default

I have started to use NHibernate with the framework Tim created in the book. I am wondering how you have changed the Unit Of Work implementation to fit in with NHibernate?

Reply With Quote
  #5 (permalink)  
Old December 15th, 2008, 06:11 AM
Registered User
 
Join Date: Dec 2008
Location: Austria
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello,

as already said in all previous post - my congratulations for this great book!
great to see the tdd/domain model in a "real world" sample.
funny sidenote - we are currenty porting an access application to .net 3.5. :)

In my current application i want to use many of your ideas (and the ideas form jimmy nielson, e.evans, ...).It would be realy interesting to see nHibernate (which i want to user in my application for persistence) in combination with your Domain Model/repository/service design.

Some things i am not sure about how to implement is the combination of f.e. "unit of work", "lazy loading", "entity map", from your domain model with the same concepts of nHibernate.

nHibernate already supports "unit of work", "lazy loading" a.s.o.
So should i rely for this functions on nHibernate? (which i think i not so good, because nHibernate is in the persistence layer).
On the other hand - should i RE-implement this concepts in the domain model (as you did). I thik, you had to do it, because you implemented the persistence layer by yourself but what would be the best practice, if you have a framework (nHibernate), that already offers these functionality?

Another really great idea (i also want to support) ist LINQ.
LINQ to "myReposotiry" - i thing, this would be a gread implementation of the "query pattern" + i would love to see it in action in your domain model.
Maybe you find time for this in a next release of your book. :)

regards,
Hannes
Reply With Quote
  #6 (permalink)  
Old March 31st, 2009, 04:20 PM
elbandit's Avatar
Wrox Author
Points: 569, Level: 8
Points: 569, Level: 8 Points: 569, Level: 8 Points: 569, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2007
Location: Southsea, Portsmouth, Hampshire, United Kingdom.
Posts: 104
Thanks: 11
Thanked 17 Times in 15 Posts
Default

HannesB,

I have just written a Wrox Blox PDF about NHibernate:
http://www.wrox.com/WileyCDA/WroxTit...470488204.html

The project is written following a Domain Driven Design and has a similar architecture to Tims project and includes the Unit of Work Pattern, Lazy Loading with Repositories and a Service layer. You can download the code for free, its written in VB.net but you shouldn't find it hard to convert to C#.

Scott
Reply With Quote
  #7 (permalink)  
Old April 1st, 2009, 02:44 AM
Registered User
 
Join Date: Dec 2008
Location: Austria
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi scott,

great job!
i will download the source to obsverve your solution.

regard,
hannes
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Persistence of control states between posts pankaj_daga ASP.NET 1.0 and 1.1 Basics 1 November 20th, 2003 07:11 AM



All times are GMT -4. The time now is 11:21 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.