Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table not updated.
Message
De
16/06/2007 12:27:02
 
 
À
14/06/2007 15:54:37
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01232865
Message ID:
01233739
Vues:
8
Actually, I think the .Update() method does an .AcceptChanges() for you automatically ... I'm not 100% sure about this, since I don't use the .Update() method. Easy enough to test though.

~~Bonnie



>>Sorry about not replying sooner...
>
>No problem, I think you answered the usefulness of accept changes for me!
>
>If I'm understanding this correctly, if I don't use .AcceptChanges after update, and I then call update again, all the records will re-updated instead of just the ones since the last update. I think I get now, that explained a lot, thanks.
>
>>Yes, the .AcceptChanges only "finalizes" the changes in the datatable... you need to reconcile the differences back to the SQL table. And really, I think you should be sending the change back to the database and if there are no errors, do an .AcceptChanges.
>>
>>Sorry about not replying sooner...
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform