You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose that when performing batch updates with the ContinueUpdateOnError property of the DataAdapter set to true, the AcceptChanges should be called only for rows with HasErrors=false (of course if AcceptDuringUpdate=true). It might be helpful for repeating Update operation after fixing errors in rows. For this reason erroneous rows should preserve their RowVerison
Consider following change in code:
instead of
if (this.AcceptChangesDuringUpdate)
{
row.AcceptChanges();
}
use
if (this.AcceptChangesDuringUpdate && !row.HasErrors)
{
row.AcceptChanges();
}
Submitted by: Pavel (chpasha)
I propose that when performing batch updates with the ContinueUpdateOnError property of the DataAdapter set to true, the AcceptChanges should be called only for rows with HasErrors=false (of course if AcceptDuringUpdate=true). It might be helpful for repeating Update operation after fixing errors in rows. For this reason erroneous rows should preserve their RowVerison
Consider following change in code:
instead of
if (this.AcceptChangesDuringUpdate)
{
row.AcceptChanges();
}
use
if (this.AcceptChangesDuringUpdate && !row.HasErrors)
{
row.AcceptChanges();
}
Commits: 04f7791
The text was updated successfully, but these errors were encountered: