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: 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 Display Modes
  #1 (permalink)  
Old April 23rd, 2008, 07:04 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default LINQ to SQL example for TBH - Wrox Blox Errata

Hello everyone,
†††I am going to maintain this thread as errors in the manuscript or code come to light.††

The last code example directly before the section on Scalar Functions (~pg 17) displays this code as to be added:
Code:
return new Article(record.ID, record.AddedDate, record.AddedBy,
                record.CategoryID, record.tbh_Category.Title, 
                record.Title, record.Abstract, record.Body, 
                record.Country, record.State, record.City, 
                (DateTime)record.ReleaseDate, 
                (DateTime)record.ExpireDate, record.Approved,††
                record.Listed, record.CommentsEnabled,††
                record.OnlyForMembers, record.ViewCount, 
                record.Votes, record.TotalRating);
It needs to instead be:
Code:
return new Article(record.ArticleID, record.AddedDate, record.AddedBy,
                record.CategoryID, record.tbh_Category.Title, 
                record.Title, record.Abstract, record.Body, 
                record.Country, record.State, record.City, 
                (DateTime)record.ReleaseDate, 
                (DateTime)record.ExpireDate, record.Approved,††
                record.Listed, record.CommentsEnabled,††
                record.OnlyForMembers, record.ViewCount, 
                record.Votes, record.TotalRating);
This is only an issue if you are copying the code directly from the manuscript; the code download is correct.

Thanks!
-Doug

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
  #2 (permalink)  
Old April 26th, 2008, 10:25 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Also on Page 17 after you have modifed your first few methods the Blox instructs:

"At this point rebuild and run your application. If you login as Admin and navigate to the Manage Articles section, for example, you will notice that it operates just as it did prior to the changes!"

This is inaccuarte because one of the last things you do is change the arguments of the GetArticleListFromArticleDetailsList to a type of: List<tbh_Article>

This is going to cause compile errors in the other methods that you have not yet edited. The last few sentences should read:

"At this point you can try to rebuild TBH but, as you will see, you need to first alter a few other methods before you will see the fruits of your labor. You will address these methods in the following sections."

Thanks to forum user: kalel_4444 for pointing out this mistake as well as the issue in my first post.

Thanks!
-Doug


================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 


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 to SQL example for TheBeerHouse in Wrox Blox jminatel BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 51 January 17th, 2009 12:22 AM
Technical Editor: LINQ and TheBeerHouse Wrox Blox jminatel BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 August 30th, 2008 01:11 AM
LINQ in ASP.NET 3.5 Project Wrox Blox available jminatel ASP.NET 2.0 Professional 0 October 8th, 2007 10:29 PM
LINQ in ASP.NET 3.5 Project Wrox Blox available jminatel ASP.NET 3.5 Professionals 0 October 8th, 2007 10:26 PM



All times are GMT -4. The time now is 06:11 AM.


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