Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 22nd, 2008, 07:22 AM
Authorized User
 
Join Date: Oct 2008
Location: Tel Aviv, , Israel.
Posts: 25
Thanks: 8
Thanked 0 Times in 0 Posts
Default TBH and EntLib

Total newbie, trying to get a feeling of what's out there, so please treat gently

I'm learning The Beer House (TBH) solution. Re infrastructure, it provides a DAL that sits between the relational DB and business objects.

Then, there's EntLib which AFAIK, does pretty much the same.

Am I right? If so, does it make sense to study and follow TBH? If those two solve the same issue, and EntLib has massive support behind it, should I switch my learning efforts to EntLib?

  #2 (permalink)  
Old October 24th, 2008, 04:20 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Creetown, UK
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default

Avraham,

To be honest, i've never used EntLib but have looked at it, so know a little about it. As far as i know, EntLib returns typed datasets, rather than having a BLL with the ActiveRecord pattern. Based on this assumption, the key strength of TBH is the fact that you can model your domain (BLL) in a heirarchical fashion with all related parent and child objects. you can also lazy load entire entities and/or individual properties when you have complete control of your domain model.

Also, as TBH uses the provider model, your datastore can be anything from a database to an XML file to a spreadsheet, etc, etc. All that you require to do is 'write' a provider for this in the DAL namespace and your BLL layer will function against that with no changes required. In EntLib (from what i've read) it's limited to SQLServer/Oracle databases etc...

Obviously, an indepth study would reveal further differences and one approach may suit you more than the other. However, in my opinion, as TBH is a totally patterns and practices based model it shouldn't be too difficult to move from one model to another, just more an issue of deciding what fits your requirement up front. If typed datasets is your bag, then EntLib would be a no-brainer. If however, you need the further flexibility to express your domain more richly, then i think you'd have to consider TBH (or nHibernate etc).

just my thoughts based on very 'slim' knowledge of EntLib.

jimi

http://www.originaltalent.com
  #3 (permalink)  
Old October 25th, 2008, 09:08 AM
Authorized User
 
Join Date: Oct 2008
Location: Tel Aviv, , Israel.
Posts: 25
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Hi Jimi, and thank you for responding,

I'm really really talking from ignorance here, but I was thinking about the Web Service Software Factory, and especially the Modeling Edition.

My feeling is that in addition to reducing the object relational match, it also provides you with deployment freedom (i.e. you can spread you application across servers) through the use of WCF services.

Anyhow, I'm hugely enjoying the book, and even if I chose the alternative architecture, it's a great learning experience!


Avi

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
AJAX + TBH? ViagraFalls BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 13 December 11th, 2007 09:17 AM
Help! Still cannot get the TBH to run sarka BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 August 12th, 2007 12:21 AM
AJAX-TBH FT BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 17 August 6th, 2007 04:11 AM
TBH erros prbspfc BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 February 7th, 2007 01:32 PM
TBH and XML rocco50 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 January 31st, 2007 11:45 AM



All times are GMT -4. The time now is 04:57 AM.


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