View Single Post
  #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!