Object design question in dotNet

This is a discussion on "Object design question in dotNet" within the Other Programming Languages section. This forum, and the thread "Object design question in dotNet are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Other Programming Languages

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 10th, 2006, 13:28
N_K N_K is offline
New Member
Join Date: Aug 2006
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Object design question in dotNet

Hi,

I'm designing a system in ASP.Net using VB.Net.

I have an object called Uer which will house a user's email address and password. I want each user to have its own Address object also which holds name, address, country etc.

What i need to know is to I make one of the properties in the User object to be of the type Address and put address info there like an object within and object or do I have the Address as a seperate object linked via a common field such as 'AddressId' say?

Thanks,

beN
Reply With Quote

  #2 (permalink)  
Old Oct 11th, 2006, 22:15
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Object design question in dotNet

Although not familiar with the particular technologies you have chosen to use, the question is pretty much the same as a database table one.

If you expect that users can only have one address, then have all those attributes in the same table(object) as their other details.

If on the other hand you expect that the user can have certain attributes that are(have to be unique) and yet others that they can have multiple stes of, then you have a one-to-many relationship and have to create your tables(objects) accordingly.
Reply With Quote
Reply

Tags
oop asp vb

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
question about web design lillizzierae Starting Out 6 Sep 13th, 2007 17:55
Design question grandman Starting Out 1 Jun 6th, 2007 15:15
Object ID firefox help russtuk Web Page Design 1 May 21st, 2007 15:21
Not new to design but have a question! Rob Web Page Design 2 Aug 16th, 2003 21:34


All times are GMT. The time now is 22:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43