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 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 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 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!
  #2 (permalink)  
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.
 


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
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



All times are GMT -4. The time now is 07:39 AM.


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