Skip to content

SQL-116: EbillQueryProvider.GetBillCountByClearinghouseControlNumber

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

Classification

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

Parameters

Parameter Direction Type Max length Description
clearinghouseControlNumber Input string N/A Method argument of EbillQueryProvider.GetBillCountByClearinghouseControlNumber bound into the ORM expression; NHibernate generates the bind variable at runtime

Tables

Table Access Columns used
EBILL SELECT CLEARINGHOUSE_CONTROL_NUM

LINQ statement

Source: Data/SAIF.Data/Queries/Claims/Ebilling/EbillQueryProvider.cs:58

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillQueryProvider.cs:29
billRepository = Factory.GetRepository<Ebill>().Query();

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillQueryProvider.cs:58
return billRepository.Count(x => x.ClearinghouseControlNumber == clearinghouseControlNumber);

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 COUNT(*)
FROM EBILL E
WHERE E.CLEARINGHOUSE_CONTROL_NUM = :clearinghouseControlNumber

Translation notes:

  • Count(predicate) becomes SELECT COUNT(*) with the predicate in WHERE.

Operations and processes

Business rules

Sources

  • Data/SAIF.Data/Queries/Claims/Ebilling/EbillQueryProvider.cs:58