Wrox Programmer Forums
| 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 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 April 23rd, 2008, 06: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."
===============================================
 
Old April 26th, 2008, 09: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
================================================== =========




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 12:11 AM
LINQ in ASP.NET 3.5 Project Wrox Blox available jminatel ASP.NET 2.0 Professional 0 October 8th, 2007 09:29 PM
LINQ in ASP.NET 3.5 Project Wrox Blox available jminatel ASP.NET 3.5 Professionals 0 October 8th, 2007 09:26 PM





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