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: 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 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 January 8th, 2013, 03:37 AM
Registered User
Points: 20, Level: 1
Points: 20, Level: 1 Points: 20, Level: 1 Points: 20, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2013
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Agatha's and Linq to Sql

Hello,

First of all let me thank you for your excellent book.

I am used to building asp.net sites using the RAD approach with most of the logic found in the code behind. As a result, this book was both enlightening and shocking to me.

I really love the Agatha's project even though it took some time to understand how everything sticks together. My question is, can I use Linq to Sql instead of NHibernate? If so, does this mean I can avoid having to implement Unit of Work and Query Object since they are automatically provided by Linq to Sql?

On a side note, assuming I am using Linq to Sql, what is the best approach as far as the objects automatically created by the dbml designer are conserned? Should I take advantage of the partial classes or use mappers to convert between them and the domain model's objects?

Thank you very much in advance,
dimitris
Reply With Quote
  #2 (permalink)  
Old February 1st, 2013, 02:13 AM
Registered User
Points: 20, Level: 1
Points: 20, Level: 1 Points: 20, Level: 1 Points: 20, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2013
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

May I answer to myself that linq to sql is more than meets the eye at first glance.

I dare say it encapsulates a handful of patterns including unit of work, lazy loading, identity map and also acts as an aggregator.

With use of an appropriate , generic repository it can deliver but it does not fit well with the request-response messaging service design since it automatically provides master <-> details bi-directional collections. Furthermore, POCO model classes are somewhat useless or redundant since partial classes can provide for business logic and validation.

All in all, linq to sql replaces the need to deploy most patterns by hand not only in the data access layer but also in the model and service layers thus making the contents of this book look outdated and this is probably the reason no answer was given to my initial question.
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
LINQ or T-SQL? DennisE ASP.NET 4 General Discussion 2 October 29th, 2011 11:36 AM
LINQ to EF and LINQ to SQL sophia BOOK: Beginning ASP.NET 4 : in C# and VB 1 October 19th, 2011 12:16 PM
LINQ to SQL or not? gvdamn BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 2 August 20th, 2009 05:08 AM
LINQ to SQL bakm04 BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 0 August 17th, 2009 04:07 PM
LINQ to SQL in TheBeerHouse zhoux BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 October 1st, 2008 07:37 AM



All times are GMT -4. The time now is 07:50 PM.


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