Does anyone can give example regarding ParentChild OO ?
ex: Manajer have direct employee like Supervisor, Supervisor have direct employee like Staff
so i can set the something like this Manajer.Employee.Add(New Supervisor)
Supervisor.Employee.Add(New Staff)..
but i just don't know about its Class structure ..
pls give some insight
thx..
Last edited by erickwidya; Dec 12th, 2007 at 04:18 AM.
1st NF - a table should not contain repeating groups.
2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
3rd NF - there should be no dependency between non key fields in same table.
- E. Petroutsos -
perhaps like Collection of Class so i can use something like this
for each Staff in Supervisor.Employees
'do some stuff here
next
or
for each Role in User.Roles
'do some stuff here
next
i've been doing it using VB6 but i just don't how to do it in .NET
1st NF - a table should not contain repeating groups.
2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
3rd NF - there should be no dependency between non key fields in same table.
- E. Petroutsos -
my scenario is something like this one product can have many child product where child product can also have many product
A
A1
A1.1
A1.2
B
B1
B1.1
B2
B2.1
B2.1.1
B2.1.2
and so on
i have two class for Products and ProductCollections
basically ProductCollection is holding Product where Product can have ProductCollections too (confuse? )
i'm attaching the example for it..
HTH
thanks,
erick
1st NF - a table should not contain repeating groups.
2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
3rd NF - there should be no dependency between non key fields in same table.
- E. Petroutsos -