Skip to content

SQL-031: BillQueryProvider.GetRegeneratedBillEntrySourceCode

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

Classification

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

Tables

Table Access Columns used
CBP_BILL_ENTRY_SOURCE_CODE SELECT CODE, UPDATE_NUM, CODE_DESCR, UPDATE_USER, UPDATE_DATE

LINQ statement

Source: Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs:72.

return Factory.GetRepository<CbpBillEntrySourceCode>().Query().SingleOrDefault(x => x.Code == "R");

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
  CBESC.CODE,
  CBESC.UPDATE_NUM,
  CBESC.CODE_DESCR,
  CBESC.UPDATE_USER,
  CBESC.UPDATE_DATE
FROM CBP_BILL_ENTRY_SOURCE_CODE CBESC
WHERE CBESC.CODE = 'R'
-- NHibernate expects at most one row

Translation notes: - The literal 'R' is parameterized by NHibernate as a constant, not a named bind variable.

Operations and processes

Business rules

Sources

  • Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs:72