public virtual InspectionDetails.InspectionQueriesDataTable GetInspectionQueriesById(global::System.Nullable<global::System.Guid> InspectionId) {
     this.Adapter.SelectCommand = this.CommandCollection[4];
     if ((InspectionId.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[1].Value = ((System.Guid)(InspectionId.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
     }
     InspectionDetails.InspectionQueriesDataTable dataTable = new InspectionDetails.InspectionQueriesDataTable();
     this.Adapter.Fill(dataTable);
     return dataTable;
 }
 public virtual InspectionDetails.InspectionQueriesDataTable GetAllInspectionQueries() {
     this.Adapter.SelectCommand = this.CommandCollection[3];
     InspectionDetails.InspectionQueriesDataTable dataTable = new InspectionDetails.InspectionQueriesDataTable();
     this.Adapter.Fill(dataTable);
     return dataTable;
 }