C
Chris Nebinger
Okay, here's my question. How do you handle OO design
with inheritance?
For example, lets say we're developing a Real Estate
application, using .Net against an Access DB (Or SQL
Server/MSDE, etc.)
Now, we have a generic Person class (FName, LName,
Address, etc.)
We also have an Agent Class that inherits from Person,
adding a few more properties. Throw in a Client, Seller,
etc. type classes that will inherit from person, each
adding their own properties.
Do you have a person table (PersonID as PK), and then an
Agent Table (Again, PersonID as PK on 1-1 relationship),
or combine all possible fields into Person Table?
If you use seperate tables for each inherited class (no
person table, but FName fields in Agent, Client, etc.
tables), how do you handle things like mailing lists?
Anyone have any examples of UML's and the db design
supporting them? Or links to websites that talk about it?
Chris Nebinger
with inheritance?
For example, lets say we're developing a Real Estate
application, using .Net against an Access DB (Or SQL
Server/MSDE, etc.)
Now, we have a generic Person class (FName, LName,
Address, etc.)
We also have an Agent Class that inherits from Person,
adding a few more properties. Throw in a Client, Seller,
etc. type classes that will inherit from person, each
adding their own properties.
Do you have a person table (PersonID as PK), and then an
Agent Table (Again, PersonID as PK on 1-1 relationship),
or combine all possible fields into Person Table?
If you use seperate tables for each inherited class (no
person table, but FName fields in Agent, Client, etc.
tables), how do you handle things like mailing lists?
Anyone have any examples of UML's and the db design
supporting them? Or links to websites that talk about it?
Chris Nebinger