p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio (http://p2p.wrox.com/forumdisplay.php?f=477)
-   -   Error on the page 173 (http://p2p.wrox.com/showthread.php?t=77046)

ocn November 15th, 2009 08:27 PM

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!

ZeroFactorial November 24th, 2009 01:30 PM

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.


All times are GMT -4. The time now is 05:17 PM.

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