Skip to content

SQL-188: OutputDocumentQueryProvider.GetCategoryCodes

This statement is a read operation invoked through ORM (NHibernate LINQ). Executed by OutputDocumentQueryProvider.GetCategoryCodes.

Classification

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

Tables

Table Access Columns used
output_document_category_code SELECT code, code_descr

LINQ statement

Source: Data/SAIF.Data/Queries/OutputDocuments/OutputDocumentQueryProvider.cs:148.

public IEnumerable<OutputDocumentCategoryCode> GetCategoryCodes()
{
    return Factory.GetRepository<OutputDocumentCategoryCode>().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
  ODCC.code,
  ODCC.code_descr
FROM output_document_category_code ODCC

Translation notes: - The query has no filter; ToList() loads the full code table.

Operations and processes

Business rules

Sources

  • Data/SAIF.Data/Queries/OutputDocuments/OutputDocumentQueryProvider.cs:148