Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting data into dtat table
Message
 
À
11/10/2007 10:59:39
Ian Hammond
Greenfield Software Ltd
St. Neots, Royaume Uni
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01260301
Message ID:
01260442
Vues:
11
Ian,

>I'm a newby trying to get to grips with the mere mortals framework. I have come to a point where I have transferred a dataset from a mobile device via a web service and I wish to update the backend database. I have created a business object that takes a record at a time from the dataset and I need to copy the data from the row into a row that represents the structure in the main database and then insert this as a new record. I'm a little lost reading the online documentation and was wondering if anyone could point me in the right direction or furnish me a example that is not to trivial so that I have something to work from.

Is the structure of the data set you're ready from and copying to different? If not, you can just give the business object the DataSet returned from the web service by calling its SetDataSet() method. If it *is* different, you can call GetEmptyDataSet() on the target business object, call NewEntity() (preferable) or NewRow() on the target business object and copy the values from the source DataRow to the target DataRow/Entity.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform