Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append record to a table
Message
De
13/08/2007 08:44:24
Bonhomme Sanon
Hercules Software
Pays-Bas
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Append record to a table
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01247790
Message ID:
01247790
Vues:
69
As Visual Foxpro programmer I am thinking to make the transition to .NET but I am having problems to result some basic issues of Database programming, I am just two weeks busy.

Can anyone please tell me how can I save data at the end of my application, I a trying this Function without success

private void SaveData()
{
this.Validate();
this.weatherRecordBindingSource.EndEdit();
this.weatherRecordTableAdapter.Update (this.database1DataSet.WeatherRecord);
Database1DataSet.WeatherRecordDataTable tablechanges =
database1DataSet.WeatherRecord.GetChanges(
DataRowState.Added | DataRowState.Modified)
as Database1DataSet.WeatherRecordDataTable;
if (tablechanges != null)
{
weatherRecordTableAdapter.Update(tablechanges);
}
database1DataSet.AcceptChanges();
}
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform