Exemple #1
0
    /// <summary>
    /// Shows how to Update an existing record by Primary Key
    /// </summary>
    private void Update()
    {
        // first instantiate a new CourseEnrollment
        CourseEnrollment objCourseEnrollment = new CourseEnrollment();

        // assign the existing primary key(s)
        // of the record you want updated
        objCourseEnrollment.EnrollmentId = 12;

        // assign values you want updated
        objCourseEnrollment.CourseName  = 12;
        objCourseEnrollment.StudentName = 12;
        objCourseEnrollment.Comments    = "abc";

        // finally, update an existing record
        objCourseEnrollment.Update();
    }