Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Theoretical issue - how do you handle this?
Message
From
04/04/2005 13:02:28
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01001223
Message ID:
01001271
Views:
16
While preferably this would be done in the data tier, we do it in the business tier because our app can have multiple backends. By having it handled via code at the business level the backend is not germain. It suits our purposes fine.

Of course you could create a separate 'logical' data tier in code to handle this type of thing. You could create your own data objects and place your appropriate code there depending on the backend type. Probably some would do that. It adds another level to maintain though but would work as well.


>Hi everybody,
>
>We just had a discussion between developers about how do we usually handle lookup codes. E.g.suppose you have a table, which has several coded fields, which could be ever empty (NULL) or valid codes. Do you create a trigger (restrict) for Insert/Update/Delete or do you simply handle this in the application itself. Also I'd like to hear about your experience with different back-ends. I see advantages and disadvantages of both approaches and would really appreciate your input on the matter. So, basically I'm conducting a pool.
>
>Thanks a lot in advance.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform