/// <summary> /// Create a new Course object. /// </summary> /// <param name="courseID">Initial value of the CourseID property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="credits">Initial value of the Credits property.</param> /// <param name="departmentID">Initial value of the DepartmentID property.</param> public static Course CreateCourse(global::System.Int32 courseID, global::System.String title, global::System.Int32 credits, global::System.Int32 departmentID) { Course course = new Course(); course.CourseID = courseID; course.Title = title; course.Credits = credits; course.DepartmentID = departmentID; return course; }
/// <summary> /// Deprecated Method for adding a new object to the Courses EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCourses(Course course) { base.AddObject("Courses", course); }