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.
|
|
|
|
|
![]() |
||
Object design question in dotNet
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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 |
|
|
|
|||
|
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. |
![]() |
| Tags |
| oop asp vb |
| Thread Tools | |
|
|
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 |