Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 5th, 2010, 07:25 AM
Registered User
 
Join Date: Oct 2010
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
Default Chapter 17: UserName Column in PhotoAlbum table

Hi Imar,

In the Try it out "Letting Users Manage Their Own Photo Albums" (Chapter 17) the column "UserName" is added to the database.
But doesnt this username column contain redundant data because usernames are already stored in the aspnetdb database (table aspnet_Users) ?
In a production environment wouldnt it be better to add on only a "UserID" column to the PhotoAlbum table and create a foreign key to the the UserID column in aspnetdb? (assuming both tables are in the same database)

Last edited by ibmkahm; November 5th, 2010 at 07:29 AM..
 
Old November 5th, 2010, 07:37 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
assuming both tables are in the same database
Yes, in that case you're absolutely right.... However, that's not the present situation with the PlanetWrox web site.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 13 - Cannot insert explicit value for identity column in table 'Picture' when hahoa BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 10 November 6th, 2009 01:29 PM
Chapter 17 HenzFast BOOK: Beginning Microsoft Visual Basic 2008 ISBN: 978-0-470-19134-7 2 April 14th, 2009 03:28 AM
how to check the username already exists in table asad_black ASP.NET 2.0 Basics 2 September 15th, 2008 07:19 AM
Chapter 17 first Try It Out paloyme Visual Basic 2005 Basics 0 April 17th, 2006 04:34 AM
No Code for 'People Table' in Chapt 17 peterstandard BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 January 1st, 2005 01:07 AM





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