/// <summary> /// Shows how to Update an existing record by Primary Key /// </summary> private void Update() { // first instantiate a new CourseEnrollmentInfo CourseEnrollmentInfo objCourseEnrollmentInfo = new CourseEnrollmentInfo(); // assign the existing primary key(s) // of the record you want updated objCourseEnrollmentInfo.EnrollmentId = 12; // assign values you want updated objCourseEnrollmentInfo.CourseId = 12; objCourseEnrollmentInfo.StudentId = 12; objCourseEnrollmentInfo.Comments = "abc"; // finally, update an existing record objCourseEnrollmentInfo.Update(); }