示例#1
0
        /// <summary>
        /// Create a new ObjectCourse 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 ObjectCourse CreateObjectCourse(global::System.Int32 courseID, global::System.String title, global::System.Int32 credits, global::System.Int32 departmentID)
        {
            ObjectCourse objectCourse = new ObjectCourse();

            objectCourse.CourseID     = courseID;
            objectCourse.Title        = title;
            objectCourse.Credits      = credits;
            objectCourse.DepartmentID = departmentID;
            return(objectCourse);
        }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ObjectCourses EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToObjectCourses(ObjectCourse objectCourse)
 {
     base.AddObject("ObjectCourses", objectCourse);
 }