Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting data into dtat table
Message
From
15/10/2007 09:56:56
Ian Hammond
Greenfield Software Ltd
St. Neots, United Kingdom
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01260301
Message ID:
01261016
Views:
11
Hi Kevin,

I have been looking at the documentation and I'm not sure if I have understood correctly what I need to do. I have used your response as a guide and firstly my version of MM is not upto date enough to support the NewEntity method.

The record I will be returning via the web service will be incomplete and will comprise a number of invoice header records.

The web service will invoke the Invoices object and a method I will expose will be to save an invoice header record.

My interprestation of the documentation is thus:

1) The constructor of the invoices object calls the GetEmptyDataSet() and sets a dataset field. (or do I need to call this for each newrow?)

2) The SaveInvoiceHeader(DataRow row) method: this creates a new row for the dataset created in the constructor: The fields in the argument are passed to the new row via the field namees or can you link the new row to the Entity, I'm not quite sure where this fits in.

3) When all the invoice headers have been copied into the new dataset, how does this get passed into the physical database.


Could you please confirm whether or not I have grasped what is required to save my data

Many thanks for you time

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform