Business / data layer design

A

Andy

Hi all,

I'm building various tiers to support multiple applications. I will
have the data layer, business layer, and serveral UI layers.

Currently I have a Data class when represents a single row in a
specific table. I have a business object which works solely on that
row.

In my business object, I have a method that will retreive the data by
instanciating the DA object, and call its load method. The business
object then copies the properties of the DA object into its own,
translating if necessary (for example, a column might have 1, 2, 3 or 4
while the Business layer has an enum representing each).

It feels like a design pattern such as a factory should apply here, but
I'm not really sure which one (if any), so I'd appreciate feedback from
the group.

Thanks!
Andy
 
A

Andy

Thanks Mike, but I didn't really find anything in that article that
answers my question.

andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top