B
Brad Pears
I have a physical DB that includes two tables in a one to many relationship.
When designing the business classes for this, I have a class for each of
these tables - but I want the main class to include as one of it's
properties the collection of the related classes (i.e. the child rows from
table 2)
1) Does this make sense to do this?
2) Would I simply define a "collection" property to accomodate this " i.e.
"dim cDetailItems as collection"
3) When the business object is instantiated, that's where I would then call
methods to fill the collection correct?
4) Do I need to do anything different in the collection properties "get" and
"set" code?
Is there anything else I should be doing or thinking of?
Thanks, Brad
When designing the business classes for this, I have a class for each of
these tables - but I want the main class to include as one of it's
properties the collection of the related classes (i.e. the child rows from
table 2)
1) Does this make sense to do this?
2) Would I simply define a "collection" property to accomodate this " i.e.
"dim cDetailItems as collection"
3) When the business object is instantiated, that's where I would then call
methods to fill the collection correct?
4) Do I need to do anything different in the collection properties "get" and
"set" code?
Is there anything else I should be doing or thinking of?
Thanks, Brad