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!
*************************************************
 
Back
Top