public virtual InspectionDetails.CheckListInspectionDataTable GetInspectionCheckListById(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.CheckListInspectionDataTable dataTable = new InspectionDetails.CheckListInspectionDataTable(); this.Adapter.Fill(dataTable); return dataTable; }
public virtual InspectionDetails.CheckListInspectionDataTable GetAllInspectionCheckList() { this.Adapter.SelectCommand = this.CommandCollection[3]; InspectionDetails.CheckListInspectionDataTable dataTable = new InspectionDetails.CheckListInspectionDataTable(); this.Adapter.Fill(dataTable); return dataTable; }