---
title: "SQL-282: Retrieve PurchaseOrderLineComment via RetrievePurchaseOrderLineComments"
summary: Read operation against PurchaseOrderLineComment via NHibernate ORM.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-09-24
library: SAIF.Services
reference_type: package
---

# SQL-282: Retrieve PurchaseOrderLineComment via RetrievePurchaseOrderLineComments

This statement performs a full-table read of `PurchaseOrderLineComment` via NHibernate LINQ in `PurchaseOrderService.RetrievePurchaseOrderLineComments`, executed from `Services/SAIF.Services/Corporate/PurchaseOrderService.cs (L79)`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-282 |
| **Operation type** | Read |
| **Execution method** | ORM (NHibernate LINQ) |
| **Database** | Oracle |
| **Schema** | INFR_DBA (explicit qualifier in Table()) |
| **Command type** | N/A (ORM-generated) |
| **Business object** | `PurchaseOrderService` |
| **Criteria property** | N/A — ORM |
| **Lifecycle method** | `RetrievePurchaseOrderLineComments` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| (none) | N/A | N/A | N/A | Full-table read — no filter predicate |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PURCHASEORDERLINECOMMENTS](../database-tables.md#purchaseorderlinecomments) | SELECT | `L_INDEX`, `ATCHNBR`, `SEQNBR`, `OBJECT` |

## LINQ statement

Source: `Services/SAIF.Services/Corporate/PurchaseOrderService.cs:79`

```csharp
// Services/SAIF.Services/Corporate/PurchaseOrderService.cs:79
return _unitOfWork.GetRepository<PurchaseOrderLineComment>().Query().ToList();
```

## Sample SQL

> **Inferred SQL:** This SQL was inferred from the LINQ statement above and the NHibernate mappings. It is not concrete SQL from source code; NHibernate generates the executed statement at runtime, so aliases, column order, join syntax, and bind-parameter names may differ.

```sql
-- Inferred from LINQ (NHibernate mapping translation); not concrete SQL
SELECT
  POLC.L_INDEX,
  POLC.ATCHNBR,
  POLC.SEQNBR,
  POLC.OBJECT
FROM INFR_DBA.PurchaseOrderLineComments POLC
```

Translation notes:
- Full-table read; `.ToList()` materializes.

## Operations and processes
- PurchaseOrderService.RetrievePurchaseOrderLineComments — see [Operations and processes](../operations-processes.md)

## Sources
- `Services/SAIF.Services/Corporate/PurchaseOrderService.cs (L79)`
