Beispiel #1
0
        public static void InitialSeed(StudentSystemContext context)
        {
            StudentGenerator.InitialStudentSeed(context, 5);
            CourseGenerator.InitialCourseSeed(context, 10);

            var students = context.Students.ToList();
            var courses  = context.Courses.ToList();

            HomeworkGenerator.InitialHomeworkSeed(context, 30, courses, students);
        }
Beispiel #2
0
 private static void SeedHomeworks(StudentSystemContext db, int count)
 {
     HomeworkGenerator.InitialHomeworkSeed(db, count);
 }
 private static void SeedHomeworks(SchoolDbContext db, int count)
 {
     HomeworkGenerator.InitialHomeworkSeed(db, count);
 }