Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local view or cursoradapter?
Message
De
25/02/2005 15:50:12
 
 
À
25/02/2005 12:20:44
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00990608
Message ID:
00990705
Vues:
19
Alan,

>...Are there any advantages of using a CA over a local view of native data? Will the fact that the datasources are free-tables make any difference?

I'm about to dive into a similar project and will know more about free-table "issues" very soon. Meanwhile, one of the big advantages of CA is that you can set up your own top-level subclass of CursorAdapter class, put enhanced functionality there (such as indexing cursors based on an array property that you add (or collection) to hold indexing info, or other specific enhancements related to making it work better with free tables.)

Then, you can subclass from there for each CA you need and inherit all the good stuff from above.

To me, the subclassability of CAs (and XMLAdapters) is one of the greatest advantages.

You also may find that if you eventually need to convert to SQL Server or another ODBC backend, it may be a bit easier to just tweak the top-level CA instead of having to create remote views or SQL Passthrough commands for every table.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform