Skip to content

SQL-300: Retrieve StandardOtherCoverageText via GetStandardOtherCoverageTexts

This statement retrieves every StandardOtherCoverageText row via a full-table NHibernate LINQ query, executed from Services/SAIF.Services/Policies/Certificates/CertificateService.cs (L454) and enumerated via Mapper.Map. It backs GetStandardOtherCoverageTexts, which supplies the standard "other coverage" text options available for certificate generation.

Classification

Field Value
SQL ID SQL-300
Operation type Read
Execution method ORM (NHibernate LINQ)
Database Oracle
Schema [unqualified]**
Command type N/A (ORM-generated)
Business object CertificateService
Criteria property N/A — ORM
Lifecycle method GetStandardOtherCoverageTexts

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
CERTIFICATE_OTHER_COV_CODE SELECT CODE, CODE_DESCR, FULL_TEXT

LINQ statement

Source: Services/SAIF.Services/Policies/Certificates/CertificateService.cs:454

// Services/SAIF.Services/Policies/Certificates/CertificateService.cs:454-456
var standardOtherCoverageTexts = unitOfWork.GetRepository<CertData.StandardOtherCoverageText>().Query();

return Mapper.Map<StandardOtherCoverageText[]>(standardOtherCoverageTexts);

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
  COCC.CODE,
  COCC.CODE_DESCR,
  COCC.FULL_TEXT
FROM CERTIFICATE_OTHER_COV_CODE COCC

Translation notes: - The cited line builds an unexecuted IQueryable; Mapper.Map enumerates it, producing a full-table read.

Operations and processes

Sources

  • Services/SAIF.Services/Policies/Certificates/CertificateService.cs (L454)