Exemplo n.º 1
0
 partial void DeleteProgramRequirementCourse(ProgramRequirementCourse instance);
Exemplo n.º 2
0
 partial void UpdateProgramRequirementCourse(ProgramRequirementCourse instance);
Exemplo n.º 3
0
 partial void InsertProgramRequirementCourse(ProgramRequirementCourse instance);
Exemplo n.º 4
0
		private void detach_ProgramRequirementCourses(ProgramRequirementCourse entity)
		{
			this.SendPropertyChanging();
			entity.ProgramRequirement = null;
		}
Exemplo n.º 5
0
		private void attach_ProgramRequirementCourses(ProgramRequirementCourse entity)
		{
			this.SendPropertyChanging();
			entity.Course = this;
		}
Exemplo n.º 6
0
 public void registCourses(List<Course> demcourses)
 {
     ProgramRequirement pr = new ProgramRequirement();
        DegreeProgramRequirement dpr = new DegreeProgramRequirement();
        dpr.ProgramRequirement = pr;
        foreach (Course currentcourse in demcourses)
        {
             ProgramRequirementCourse drc = new ProgramRequirementCourse();
             drc.Course = currentcourse;
             pr.ProgramRequirementCourses.Add(drc);
             _context.ProgramRequirementCourses.InsertOnSubmit(drc);
             _context.Courses.InsertOnSubmit(currentcourse);
             _context.SubmitChanges();
        }
        _context.ProgramRequirements.InsertOnSubmit(pr);
        _context.DegreeProgramRequirements.InsertOnSubmit(dpr);
 }