Skip to content

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 SELECT L_INDEX, ATCHNBR, SEQNBR, OBJECT

LINQ statement

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

// 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.

-- 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

Sources

  • Services/SAIF.Services/Corporate/PurchaseOrderService.cs (L79)