/// <summary> /// Deprecated Method for adding a new object to the Exams EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToExams(Exam exam) { base.AddObject("Exams", exam); }
/// <summary> /// Create a new Exam object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="examType">Initial value of the ExamType property.</param> /// <param name="maxMarks">Initial value of the MaxMarks property.</param> public static Exam CreateExam(global::System.Int32 id, global::System.String examType, global::System.Int32 maxMarks) { Exam exam = new Exam(); exam.Id = id; exam.ExamType = examType; exam.MaxMarks = maxMarks; return exam; }