Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
3-tier
Message
De
09/07/2007 02:13:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
3-tier
Divers
Thread ID:
01238530
Message ID:
01238530
Vues:
50
Hi,
If i use CA (CursorAdapters) and ADODB, then in CA.Init Method, i have some like ():
....
loConnDataSource = createobject('ADODB.Connection')
 
***<DataSource>

loConnDataSource.ConnectionString = [Provider=SQLOLEDB;Integrated Security=SSPI; 
Initial Catalog=Northwind;Data] + [ Source=(local);]

***</DataSource>

loConnDataSource.Open()
this.DataSource = createobject('ADODB.RecordSet')
...
But, if i use CA, ADODB and 3-Tier model (User Interface, Business Logic and Data Layer),
in this case where is there ADODB commands like oConn.Open(),oConn.BeginTrans(),
oRS.ActiveConnection = oConn, oRS.UpdateBatch(),
oConn.RollbackTrans(), oRS.CancelBatch(), oConn.CommitTrans()... my question: which layer?).
In this case (with ADO commands) is unnecessary CA ?
Please, example.
If someone knows the answer, please send it back to me.

Thanks,
Best regards
Vojislav
Répondre
Fil
Voir

Click here to load this message in the networking platform