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