private void toolBar_btnCancel_Click(object sender) { ContactDB.CancelAllChanges(); contact contact = contactViewSource.View.CurrentItem as contact; contact.State = EntityState.Unchanged; }
private void toolBar_btnCancel_Click(object sender) { dbContext.CancelAllChanges(); }