/// <summary> /// Create a new Course object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="hours">Initial value of the Hours property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="prerequisiteDescription">Initial value of the PrerequisiteDescription property.</param> /// <param name="number">Initial value of the Number property.</param> public static Course CreateCourse(global::System.Int32 id, global::System.Int16 hours, global::System.String name, global::System.String description, global::System.String prerequisiteDescription, global::System.String number) { Course course = new Course(); course.Id = id; course.Hours = hours; course.Name = name; course.Description = description; course.PrerequisiteDescription = prerequisiteDescription; course.Number = number; 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); }