J
jostein.solstad
Hi!
I am designing a 3-layer architecture and have run into a design issue
where I would like som input on best practise.
Today I have a Member class, and a Person class. My object can then be
used like Member.Person.Name. The Person object holds specifics to a
person like firstname, lastname etc. The Member class holds things
like memberid etc.
Now I am constructing a Customer object. A Customer can either be a
Person (private customer), or a Company (business customer). I was
thinking of having a Person and a Company object as a property on the
Customer object. But that would mean for each Customer.Person object,
there would be an empty Customer.Compay object that holds nothing and
vice versa.
Any input on how to solve this in a nice way?
I am designing a 3-layer architecture and have run into a design issue
where I would like som input on best practise.
Today I have a Member class, and a Person class. My object can then be
used like Member.Person.Name. The Person object holds specifics to a
person like firstname, lastname etc. The Member class holds things
like memberid etc.
Now I am constructing a Customer object. A Customer can either be a
Person (private customer), or a Company (business customer). I was
thinking of having a Person and a Company object as a property on the
Customer object. But that would mean for each Customer.Person object,
there would be an empty Customer.Compay object that holds nothing and
vice versa.
Any input on how to solve this in a nice way?