Example #1
0
        private void buttonSave_Click(object sender, EventArgs e)
        {
            try
            {
                TakeAuthorData();


                context.SaveChanges();
                context = new AuthorAnalysisDataEntities();
                MessageBox.Show("Data Saved!");
            }
            catch (DbEntityValidationException)
            {
                throw;
            }
        }
Example #2
0
 public AuthorAnalysisForm()
 {
     InitializeComponent();
     context = new AuthorAnalysisDataEntities();
 }