SQL-108: EbillInvoiceQueryProvider.GetInvoiceBills¶
This statement is a read operation invoked through ORM (NHibernate LINQ). Executed by EbillInvoiceQueryProvider.GetInvoiceBills.
Classification¶
| Field | Value |
|---|---|
| SQL ID | SQL-108 |
| Operation type | Read |
| Execution method | ORM (NHibernate LINQ) |
| Database | Oracle* |
| Schema | [unqualified]** |
| Command type | N/A (ORM-generated) |
| Business object | EbillInvoiceQueryProvider |
| Criteria property | N/A — ORM |
| Lifecycle method | GetInvoiceBills |
Parameters¶
| Parameter | Direction | Type | Max length | Description |
|---|---|---|---|---|
invoice |
Input | EbillInvoice | N/A | Method argument of EbillInvoiceQueryProvider.GetInvoiceBills bound into the ORM expression; NHibernate generates the bind variable at runtime |
Tables¶
| Table | Access | Columns used |
|---|---|---|
| EBILL_INVOICE_BILL | SELECT | EBILL_INVOICE_BILL_SEQ_NUM, BILL_TOTAL_AMOUNT, CLEARINGHOUSE_CONTROL_NUM, EBILL_INVOICE_SEQ_NUM, EBILL_SEQ_NUM |
LINQ statement¶
Source: Data/SAIF.Data/Queries/Claims/Ebilling/EbillInvoiceQueryProvider.cs:30
// Data/SAIF.Data/Queries/Claims/Ebilling/EbillInvoiceQueryProvider.cs:19
invoiceBillRepository = Factory.GetRepository<EbillInvoiceBill>().Query();
// Data/SAIF.Data/Queries/Claims/Ebilling/EbillInvoiceQueryProvider.cs:30
return invoiceBillRepository.Where(x => x.Invoice == invoice);
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
EIB.EBILL_INVOICE_BILL_SEQ_NUM,
EIB.BILL_TOTAL_AMOUNT,
EIB.CLEARINGHOUSE_CONTROL_NUM,
EIB.EBILL_INVOICE_SEQ_NUM,
EIB.EBILL_SEQ_NUM
FROM EBILL_INVOICE_BILL EIB
WHERE EIB.EBILL_INVOICE_SEQ_NUM = :invoice
Translation notes:
- The method returns the un-materialized
IQueryable. SQL runs when the caller enumerates it.
Operations and processes¶
Sources¶
Data/SAIF.Data/Queries/Claims/Ebilling/EbillInvoiceQueryProvider.cs:30