Example #1
0
 public Enrollment(int id, GradeTypesEnum gradeType, GradesEnum grade, Student student, Section section)
 {
     this.AssignmentGrades = new HashSet <AssignmentGrade>();
     this.Id        = id;
     this.GradeType = gradeType;
     this.Grade     = grade;
     this.Section   = section;
     section.Enrollments.Add(this);
     this.Student = student;
     student.Enrollments.Add(this);
 }
 public Enrollment(GradeTypesEnum gradeType, GradesEnum grade, Student student, Section section)
 {
     this.AssignmentGrades = new List <AssignmentGrade>();
     //this.Id = id;
     this.GradeType = gradeType;
     this.Grade     = grade;
     this.Student   = student;
     this.Student.Enrollments.Add(this);
     this.Section = section;
     this.Section.Enrollments.Add(this);
 }