Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
N-tier question
Message
De
10/01/2003 10:40:26
 
 
À
10/01/2003 09:28:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00740247
Message ID:
00740295
Vues:
18
>Hi
>
>In a 3-tier environment, if checking for the presence of empty fields, when a save is called, should the middle-tier validate this, or the presentation-tier?
>
>Thanks
>Kev


Personally, I would put this validation on the backend. My rule of thumb has been that simple data validation should be on the database and that the middle tier should deal with business rules. For example, a business rule could be that each department defined has a employee assigned to it...

This is quite a subjective area, but I really don't think it should go in the presentation logic. As the underlying aim is that you could change your presentation layer, without altering the middle and backend.

Have a good weekend

Mace
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform