示例#1
0
 /// <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;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Course EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCourse(Course course)
 {
     base.AddObject("Course", course);
 }