Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CheckRules and BisObj.Save
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00478957
Message ID:
00481386
Vues:
22
>Rex,
>
><>
>
>I definitely see your point...I could go either way on it. Right now my only worry is breaking existing code...again, any other lurkers out there with an opinion?
>
>Regards,

I always have an opinion... If the presavehook fails, then the save fails. But if the save fails, so does the entire transaction. One of the goals of three tier design is to isolate business rules from the data layer and the interface. But does RI belong in the middle tier or the data tier? In other words, it is the repsonsibility of the bizobj to populate the values, but the database should be responsible for basic Referential Integrity.

That said, I don't beleive the rules check needs to be run before the presave hook. A sound database design should take care of these problems.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform