1,284
100.0
Mar 02, 2011
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.