public virtual int FillAllBy(ResultCourseWiseDataSet.ResultCourseWiseDataTableDataTable dataTable, int sessionID, global::System.Nullable<int> Reg_Year, global::System.Nullable<int> Reg_Term, int isTheory) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     this.Adapter.SelectCommand.Parameters[0].Value = ((int)(sessionID));
     if ((Reg_Year.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Reg_Year.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
     }
     if ((Reg_Term.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[2].Value = ((int)(Reg_Term.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
     }
     this.Adapter.SelectCommand.Parameters[3].Value = ((int)(isTheory));
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillBy(ResultCourseWiseDataSet.ResultCourseWiseDataTableDataTable dataTable, int SessionID, int CourseID) {
     this.Adapter.SelectCommand = this.CommandCollection[2];
     this.Adapter.SelectCommand.Parameters[0].Value = ((int)(SessionID));
     this.Adapter.SelectCommand.Parameters[1].Value = ((int)(CourseID));
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int Fill(ResultCourseWiseDataSet.ResultCourseWiseDataTableDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }