//          Adds a new course with some resources
 private static void AddCourseWithHardCodeResources(StudentDataDbContext db)
 {
     db.Courses.Add(new Course
     {
         Name = "Java Mava",
         Price = 100.00M,
         Resources = new HashSet<Resource>
         {
             new Resource
             {
               TypeResourse  = TypeResourse.Document,
               Link = "http://www.mahajseOtTukaJavaProstotii.bg"
             },
             new Resource
             {
                 TypeResourse  = TypeResourse.Document,
                 Link = "http://www.mahajseOtTukaJavaProstotii.bg"
             }
         }
     });
     db.SaveChanges();
 }
        static void Main(string[] args)
        {
            Database.SetInitializer(new MigrateDatabaseToLatestVersion<StudentDataDbContext, Configuration>());

            var db = new StudentDataDbContext();
            db.Students.Add(new Student
            {
                Name = "Bi0GaMe",
                PhoneNumber = "08812345678",
            });
            db.SaveChanges();

            StudentsHomework(db);
            CourseAndTheirResources(db);
            AddCourseWithHardCodeResources(db);
        }