Skip to content

SQL-077: EbillAddressQueryProvider.GetAddressesToOverride

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

Classification

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

Tables

Table Access Columns used
EBILL_ADDRESS_OVERRIDE SELECT PROVIDER_LOCATION_SEQ_NUM, UPDATE_NUM, ADDRESS_LINE, REASON_FOR_OVERRIDE, UPDATE_DATE, UPDATE_USER

LINQ statement

Source: Data/SAIF.Data/Queries/Claims/Ebilling/EbillAddressQueryProvider.cs:39. The repository is a class field initialised from Factory.GetRepository<EbillAddressOverride>() at Data/SAIF.Data/Queries/Claims/Ebilling/EbillAddressQueryProvider.cs:19.

return addressOverrideReqository.Where(x => x.AddressLine != null);

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
  EAO.PROVIDER_LOCATION_SEQ_NUM,
  EAO.UPDATE_NUM,
  EAO.ADDRESS_LINE,
  EAO.REASON_FOR_OVERRIDE,
  EAO.UPDATE_DATE,
  EAO.UPDATE_USER
FROM EBILL_ADDRESS_OVERRIDE EAO
WHERE EAO.ADDRESS_LINE IS NOT NULL

Translation notes: - != null translates to IS NOT NULL. - The method returns a deferred IQueryable typed as IEnumerable. The SQL runs on each enumeration by the caller.

Operations and processes

Sources

  • Data/SAIF.Data/Queries/Claims/Ebilling/EbillAddressQueryProvider.cs:39