Back to list
Views:   0
Replies:  0
Archived
,
Without more details, I can only give general advice about what I would look at. Firstly you might want to try to use a "factory" pattern to return the correct email object. Or you might like to look at a "proxy" object.
Feb 26, 2011
Reply 1
One of the basic design is to layer your applications into tiers (atleast minimum 3 tiers).  There may be more layers, but that depends on the nature of the app being designed.

- Presentation Layer (UI)
- Service Layer
- Data Layer


But in any case the "Presentation Layer" never directly talks to the "DB" Layer.  It is the responsibility of the service layer to talk to the DB.

Also, to abstract further, you may have the Repository Layer between Service and Data Layer as follows..

- Presentation Layer (UI)
- Service Layer
- Repository Layer
- Data Layer

Hope this helps.

Rajesh Pillai, Mar 02, 2011
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas