Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Only Children records with changes
I ran across an interesting problem. I have set up several child business objects to keep everything together in one transaction in case of a failure. There are some instances where the parent table has no records added, but the children have records. The parent .IsChanged() is true, but when I attempt to save, I get a SaveCancelled response. In SaveDataSet() it checks the parent table to see if there are any rows in the table. Since I have none, it assumes there are no changes to be made and cancells my changes.
Can I find obscure problems or what?
Jeff
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement