Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
N-tier development
Message
From
19/08/2002 09:37:59
 
 
To
18/08/2002 23:53:56
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00690914
Message ID:
00691004
Views:
20
Jordan,
In addition to Craig's paper (which are excellent on n-tier design) below is a link that has some pretty good graphics on n-tier development to help you understand it. It's done with VB, but the principle's are similar.

http://209.171.223.4/yzhang/vb.htm#SQL%20Statement

Tracy

>That's the job of the data object. If you put the SQL SELECT in the biz layer, then it knows too much about the data. For example, you may have a query called GetCustomerByID. The UI will call the GetCustomerByID method of the biz tier and pass the ID. The biz tier then calls the GetCustomerByID of the data tier and also passes the ID. The SQL SELECT is created in the data tier with something like WHERE CustomerID = TheParameter. This is sent to the data store, which returns the data. The data then goes from the data tier to the biz tier and into the UI.
>
>
>>Hi all,
>>i am just getting into the whole n-tier thing and i have a question.
>>
>>when creating your data object is it best to store there all the sql queries for your various functions (save, delete etc.) or is it better to pass the sql string to the data object from the business rules object?
>>
>>thanks
>>Jordan
.·*´¨)
.·`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
Reply
Map
View

Click here to load this message in the networking platform