private void buttonSave_Click(object sender, EventArgs e) { try { TakeAuthorData(); context.SaveChanges(); context = new AuthorAnalysisDataEntities(); MessageBox.Show("Data Saved!"); } catch (DbEntityValidationException) { throw; } }
public AuthorAnalysisForm() { InitializeComponent(); context = new AuthorAnalysisDataEntities(); }