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 March 28th, 2009, 12:09 PM
Authorized User
 
Join Date: Mar 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Question On page 174 roles probelm

On page 174 this code seems strange and might be causing my contraint problems

//add
ID = newENTRoleData().Insert(db, RoleName, userAccountId);
//since this was an add you need to update the role ids for the user and capability records
foreach (ENTRoleCapabilityEO capability in RoleCapabilities)
{
capability.ENTRoleId = ID;
}
foreach (ENTRoleUserAccountEO user in RoleUserAccounts)
{
user.ENTRoleId = ID;
}

The Capability.ENTRoleId should be I Think Capability.ENTCapabilityId and needs another ID to use instead of he one returned by newENTRoleData().Insert(db, RoleName, userAccountId);

 
Old March 28th, 2009, 12:37 PM
Wrox Author
 
Join Date: Jan 2009
Posts: 73
Thanks: 0
Thanked 7 Times in 7 Posts
Default

Could you send me your project files so I can have a look. You can email them to me at [email protected]





Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot hide page in sitemap using roles hertendreef ASP.NET 2.0 Professional 2 August 21st, 2007 12:56 PM
Query Probelm tsimsha ASP.NET 1.0 and 1.1 Basics 1 June 7th, 2006 10:48 AM
Performance probelm with tomcat manishwaf Servlets 0 May 29th, 2006 06:47 AM
"Microsoft®" --> "Microsoft®" rockon C# 1 October 20th, 2005 01:27 AM





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