N
Nemisis
Hi all,
I am trying to work out whether my objects whould contain child objects
or just an ID property to the linking object.
I have the following table in my SQL database
tblCompany
ID
Name
SalespersonID
Then a have tblSalesPerson
tblSalesPerson
ID
FirstName
LastName
If i am going to design this, is it best OOP practice to include the
SalesPersonID within the Company object, or would i create a
CompanySalesperson object within the company object.
If anyone has a good article to read on this, or can explain it too me,
i would really really really appreicate it. Ta
I am trying to work out whether my objects whould contain child objects
or just an ID property to the linking object.
I have the following table in my SQL database
tblCompany
ID
Name
SalespersonID
Then a have tblSalesPerson
tblSalesPerson
ID
FirstName
LastName
If i am going to design this, is it best OOP practice to include the
SalesPersonID within the Company object, or would i create a
CompanySalesperson object within the company object.
If anyone has a good article to read on this, or can explain it too me,
i would really really really appreicate it. Ta