Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CheckRules and BisObj.Save
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00478957
Message ID:
00481386
Views:
21
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform