Skip to content

SQL-109: EbillInvoiceQueryProvider.GetInvoiceError

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

Classification

Field Value
SQL ID SQL-109
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 GetInvoiceError

Parameters

Parameter Direction Type Max length Description
invoice Input EbillInvoice N/A Method argument of EbillInvoiceQueryProvider.GetInvoiceError bound into the ORM expression; NHibernate generates the bind variable at runtime

Tables

Table Access Columns used
EBILL_INVOICE_ERROR SELECT EBILL_INVOICE_ERROR_SEQ_NUM, CLEARINGHOUSE_CONTROL_NUM, ERROR_TXT, EBILL_INVOICE_SEQ_NUM, EBILL_SEQ_NUM

LINQ statement

Source: Data/SAIF.Data/Queries/Claims/Ebilling/EbillInvoiceQueryProvider.cs:35

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillInvoiceQueryProvider.cs:20
invoiceErrorRepository = Factory.GetRepository<EbillInvoiceError>().Query();

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillInvoiceQueryProvider.cs:35
return invoiceErrorRepository.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
  EIE.EBILL_INVOICE_ERROR_SEQ_NUM,
  EIE.CLEARINGHOUSE_CONTROL_NUM,
  EIE.ERROR_TXT,
  EIE.EBILL_INVOICE_SEQ_NUM,
  EIE.EBILL_SEQ_NUM
FROM EBILL_INVOICE_ERROR EIE
WHERE EIE.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:35