private void Student_SaveClick(object sender, EventArgs e)
        {
            student.FirstName  = addStudentBoard.FirstName;
            student.LastName   = addStudentBoard.LastName;
            student.MiddleName = addStudentBoard.MiddleName;
            student.Marks      = marks;
            EFGenericRepository.Create(student);

            EFGenericRepository.SaveChanges();
        }
Esempio n. 2
0
 private static void MainForm_ClosingMainForm(object sender, EventArgs e)
 {
     EFGenericRepository.SaveChanges();
 }
Esempio n. 3
0
 private void StudentInfo_ClosingForm(object sender, EventArgs e)
 {
     EFGenericRepository.SaveChanges();
 }