Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Placing business rules in a table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00531066
Message ID:
00531231
Vues:
10
>I know the business rules should not be in the from (like we used to do), and that they should not be in the database either, so you don't become locked to a particular database.
>
>I understand that the recommended place to do validation is in the business object. That still leaves open the question of where should the actual validation procedures reside. Adding methods to the business object for each rule is a rather cumbersome way to do it.
>
>The question is: Does anybody here use a table to store validation procedures? The business object would still look up the record in that table, run the validation procedure and return the answer.
>
>TIA.
>
>Alex

Table or XML file... then you could add or enhance either without having to rebuild any files.
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform