Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddNew in ADO.NET
Message
 
À
27/06/2002 19:21:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00673112
Message ID:
00673172
Vues:
18
>I am getting some negative feed back from an outside development team to the effect that "AddNew" is not a fuction that is available in ADO.NET.
>If anyone can shed some light on this for me, your comments will be much appreciated.

Here a sample of adding new rows to DataSet object:
'Create a new Row
workRow = resultDataSet.Tables("Orders").NewRow
'Set the value of each of the column present in the table Orders
workRow.Item("CustomerId") = 1
workRow.Item("OrderDate") = Now()
…
…
'Add the row to the DataSet
resultDataSet.Tables("Orders").Rows.Add(workRow)
'Reconcile changes with the data source
sqlDSCmd.Update(resultDataSet, "Orders")
You might get a more detailed answer in .Net forum.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform