OOP - Confusion

  • Thread starter Thread starter PenguinPig
  • Start date Start date
P

PenguinPig

Dear Experts

I am confused in the OOP design
For my concept, I will using 3 class for each business domain
1. DomainClass - Domain information, for example, Exhibitor
2. ControllerClass - Business Logic, for example,
Exhibitor.Register(RegistrationForm)

However, if I have 20 domains, then I need 20 DomainClass, and 20
ControllerClass, am I right?
 
If you are going to follow that pattern, you are correct. There are other
patterns that can reduce the number of classes. NOTE: The pattern in
question is one you can code generate, esp. if you have the tables named the
same as the classes or have an XML mapping file. There are some open source
generating apps out there.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
 

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

Back
Top