Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote Views
Message
 
À
09/10/2002 19:39:51
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00709588
Message ID:
00709696
Vues:
14
Hi John,

>Parameters can and should be used whether using SP, SPT, RV, ADO, whatever.

I agree. The more selective you can be about what comes down the wire the better.

>To be clear, you can use parameters in RVs exactly as you do in Local Views.

I agree again.

>In VFP7, RV remains an extremely useful mechanism. Use of the CONNSTRING parameter means you can include a "views" DBC into your application where it will NEVER become corrupt- not that I've ever experienced corruption anyway.

But then you've got to carry around the extra baggage of a DBC. I prefer using a business object that uses SPT to call specific stored procs to retrive records and an ADO Command object to call the appropriate stored procs to update, insert, or delete records.

The business object data class is written generically so it can be subclassed for each specific table. Business rules are coded in the specific business object data class for that table.

I'm sure you're aware of this methodology. I list it for the lurkers who may still be learning.
Jim Duffy
Microsoft MVP
INETA Speaker
TakeNote Technologies
Developer's Choice Award Winner for Best Training Company
Specializing in VB.NET, ASP.NET, VFP, and SQL Server Training and Development
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform