Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 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 November 15th, 2009, 08:27 PM
ocn ocn is offline
Authorized User
 
Join Date: Jun 2009
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Default Error on the page 173

On page 173, the MapEntityToCustomProperties(IENBaseEntity entity) in ENTRoleEO class is different from the downloadable source code.

In the book:

Code:
protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTRole role = (ENTRole)entity;

            ID = role.ENTRoleId;
            RoleName = role.RoleName;
            RoleCapabilities.Load(ID);
            RoleUserAccounts.Load(ID);
        }
In the downloadable source code:

Code:
protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTRole role = (ENTRole)entity;

            ID = role.ENTRoleId;
            RoleName = role.RoleName;
            RoleCapabilities.LoadByENTRoleId(ID);
            RoleUserAccounts.LoadByEntRoleId(ID);
        }
Is that the typo? Which one is correct?

Thanks!
 
Old November 24th, 2009, 01:30 PM
Authorized User
 
Join Date: Mar 2009
Posts: 79
Thanks: 4
Thanked 4 Times in 4 Posts
Default

It would depend on how you are building the solution. :)

I used the source and worked backwards to learn the framework, so for me the source is correct since it works.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 example (p. 173) Tim BOOK: Beginning JavaScript 3rd Ed. ISBN: 978-0-470-05151-1 3 August 3rd, 2008 09:04 PM
Beginning Dreamweaver MX 2004 - Pgs 173-185 maezee Dreamweaver (all versions) 4 July 24th, 2005 02:22 AM
chapter 6, page 173-175, error in sql syntax vkranendonk BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 May 26th, 2004 12:30 PM
ASP Error Message 173 renisar Classic ASP Databases 9 December 19th, 2003 09:05 AM





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