/// <summary> /// Shows how to get the total number of records by CourseName /// </summary> private void GetRecordCountByCourseName() { // get the total number of records in the CourseEnrollment table by CourseName // 12 here is just a sample CourseName change the value as you see fit int totalRecordCount = CourseEnrollment.GetRecordCountByCourseName(12); }