Skip to content

Instantly share code, notes, and snippets.

@nchapman
Created August 9, 2010 20:28
Show Gist options
  • Save nchapman/516052 to your computer and use it in GitHub Desktop.
Save nchapman/516052 to your computer and use it in GitHub Desktop.
protected override void DataPortal_Update()
{
RaiseListChangedEvents = false;
using (SqlConnection cn = new SqlConnection(Database.LocalConnection))
{
cn.Open();
// loop through each deleted child object
// foreach (Sales deletedChild in DeletedList)
// // deletedChild.DeleteSelf(cn);
// DeletedList.Clear();
// loop through each non-deleted child object
foreach (Sales child in this)
{
// child.Update(cn);
}
}
RaiseListChangedEvents = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment