Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does Foxtalk need a booster?
Message
De
18/11/2003 07:23:23
 
 
À
18/11/2003 01:14:52
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00847219
Message ID:
00850934
Vues:
42
Thanks Gerry... I've got a clear picture now. Can't say that it all sounds delightful/efficient/sane though.

cheers

>>I understand "XML" to be just string information that happens to have a standard 'format'.
>>Am I correct that XML (strings) can be 'decoded' by VFP (XMLTOCURSOR()) without the need/benefit of an "engine" and 'encoded' (CURSORTOXML()) similarly?
>
>Yes ... no (proprietary) "engine" required; just some "parsing" functions. The SOAP SDK contains "tools" to help manage XML. There are also Active-X controls available to display XML in tree views (similar to the standard Tree View control).
>
>>Then .NET essentially does those simple things AND MORE (e.g. relations, adding records, updating records, deleting records) and the thing(s) that do that is/are called "the engine"? ...So there exist databases with tables that are filled with XML 'strings' (describing/being the data) and this/these "engine" take care of all this stuff in them?
>
>That about sums it up: XML's self-describing and hierarchical nature lends itself to "database" definition.
>
>The term "engine" is not used in .NET; there simply exists a set of classes (dataset and data adaptor "objects" ... that have almost identical counterparts in Delphi) that are used to make connections to physical databases (via the data adaptors) and then create local "schemas" via "datasets". These datasets (similar to VFP "buffered" tables) have properties and methods that the can be used to perform table operations (which may subsequently be committed).
>
>As an example, a .NET grid is bound to a "dataset". This dataset is "disconnected"; it only exists in memory. A "data adaptor" would typically have been used to populate the dataset from a physical data source (which could have been a VFP data source). Internally, the dataset's data is represented as XML. A .NET dataset is like a VFP cursor, although the VFP cursor "looks" like a DBF (vs XML). The fact that a dataset uses XML really makes no difference to the "programmer" since one uses the properties and methods of the dataset "object" to access the data it represents.
>
>As per MSDN:
>
>An ADO.NET DataSet object is like an in-memory database. This object holds a collection of DataTable objects. Each DataTable object is a representation of the data that was retrieved via a SELECT statement or stored procedure execution. The data in a DataSet can be written out or read in as XML. DataSets also store schema information, constraints, and relationships between multiple DataTable objects. Through a DataSet you can add, edit, and delete data.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform