Exemplo n.º 1
0
 partial void DeleteDegreeProgramRequirement(DegreeProgramRequirement instance);
Exemplo n.º 2
0
 partial void UpdateDegreeProgramRequirement(DegreeProgramRequirement instance);
Exemplo n.º 3
0
 partial void InsertDegreeProgramRequirement(DegreeProgramRequirement instance);
Exemplo n.º 4
0
		private void detach_DegreeProgramRequirements(DegreeProgramRequirement entity)
		{
			this.SendPropertyChanging();
			entity.ProgramRequirement = null;
		}
Exemplo n.º 5
0
		private void attach_DegreeProgramRequirements(DegreeProgramRequirement entity)
		{
			this.SendPropertyChanging();
			entity.Degree = 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);
 }