Пример #1
0
    private static void SeedDatabase()
    {
        var rand   = new ConsoleStudentSystem.Client.RandomGenerator();
        var seeder = new ConsoleStudentSystem.Client.StudentSystemSeeder(rand);

        seeder.SeedStudents(StudentsCount);
        seeder.SeedCourses(CoursesCount);
        seeder.SeedHomeworks(HomeworksCount);

        seeder.SeedStudentCourses();
        seeder.SeedStudentHomeworks();
    }
Пример #2
0
    private static void SeedDatabase()
    {
        var rand = new ConsoleStudentSystem.Client.RandomGenerator();
        var seeder = new ConsoleStudentSystem.Client.StudentSystemSeeder(rand);

        seeder.SeedStudents(StudentsCount);
        seeder.SeedCourses(CoursesCount);
        seeder.SeedHomeworks(HomeworksCount);

        seeder.SeedStudentCourses();
        seeder.SeedStudentHomeworks();
    }