Example #1
0
        public static void DeleteAllStudents()
        {
            GradesRepository.DeleteAllGrades();
            AttendanceRepository.RemoveAllAttendance();

            var db = new DnevnikEntities();

            db.Students.RemoveRange(db.Students);
            db.SaveChanges();
            db.Dispose();
        }