Skip to content

SQL-112: EbillProviderQueryProvider.GetProvider

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

Classification

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

Parameters

Parameter Direction Type Max length Description
providerId Input long N/A Method argument of EbillProviderQueryProvider.GetProvider bound into the ORM expression; NHibernate generates the bind variable at runtime

Tables

Table Access Columns used
EBILL_PROVIDER SELECT EBILL_PROVIDER_SEQ_NUM, UPDATE_NUM, TAX_ID, NPI, TAXONOMY, ENTITY_TYPE, PROVIDER_LEVEL_NUMBER, LAST_OR_ORGANIZATION_NAME, FIRST_NAME, MIDDLE_NAME, UPDATE_USER, UPDATE_DATE, FACILITY_NAME, EBILL_BATCH_SEQ_NUM, PROVIDER_LOCATION_SEQ_NUM, PAYMENT_ADDRESS_SEQ_NUM, PHYSICAL_ADDRESS_SEQ_NUM, FACILITY_ADDRESS_SEQ_NUM

LINQ statement

Source: Data/SAIF.Data/Queries/Claims/Ebilling/EbillProviderQueryProvider.cs:21

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillProviderQueryProvider.cs:16
providerRepository = Factory.GetRepository<EbillProvider>().Query();

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillProviderQueryProvider.cs:21
return providerRepository.SingleOrDefault(p => p.Id == providerId);

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
  EP.EBILL_PROVIDER_SEQ_NUM,
  EP.UPDATE_NUM,
  EP.TAX_ID,
  EP.NPI,
  EP.TAXONOMY,
  EP.ENTITY_TYPE,
  EP.PROVIDER_LEVEL_NUMBER,
  EP.LAST_OR_ORGANIZATION_NAME,
  EP.FIRST_NAME,
  EP.MIDDLE_NAME,
  EP.UPDATE_USER,
  EP.UPDATE_DATE,
  EP.FACILITY_NAME,
  EP.EBILL_BATCH_SEQ_NUM,
  EP.PROVIDER_LOCATION_SEQ_NUM,
  EP.PAYMENT_ADDRESS_SEQ_NUM,
  EP.PHYSICAL_ADDRESS_SEQ_NUM,
  EP.FACILITY_ADDRESS_SEQ_NUM
FROM EBILL_PROVIDER EP
WHERE EP.EBILL_PROVIDER_SEQ_NUM = :providerId
-- NHibernate expects at most one row

Translation notes:

  • Direct translation: an equality predicate on mapped columns. No navigation, joins or in-memory operators.

Operations and processes

Sources

  • Data/SAIF.Data/Queries/Claims/Ebilling/EbillProviderQueryProvider.cs:21