Skip to content

SQL-133: EbillQueryProvider.GetBillAssignmentRule

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

Classification

Field Value
SQL ID SQL-133
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 GetBillAssignmentRule

Parameters

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

Tables

Table Access Columns used
EBILL_ASSIGNMENT_RULE SELECT EBILL_ASSIGNMENT_RULE_SEQ_NUM, UPDATE_NUM, EBILL_ASSIGNMENT_RULE_CODE, RESPONSIBLE_PARTY_ID, UPDATE_USER, UPDATE_DATE, CBP_BILL_STATUS_CODE

LINQ statement

Source: Data/SAIF.Data/Queries/Claims/Ebilling/EbillQueryProvider.cs:269. The repository is obtained at Data/SAIF.Data/Queries/Claims/Ebilling/EbillQueryProvider.cs:33.

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillQueryProvider.cs:33
billAssignmentRepository = Factory.GetRepository<EbillAssignmentRule>().Query();

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillQueryProvider.cs:269
return billAssignmentRepository.SingleOrDefault(x => x.RuleCode == ruleCode);

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
  EAR.EBILL_ASSIGNMENT_RULE_SEQ_NUM,
  EAR.UPDATE_NUM,
  EAR.EBILL_ASSIGNMENT_RULE_CODE,
  EAR.RESPONSIBLE_PARTY_ID,
  EAR.UPDATE_USER,
  EAR.UPDATE_DATE,
  EAR.CBP_BILL_STATUS_CODE
FROM EBILL_ASSIGNMENT_RULE EAR
WHERE EAR.EBILL_ASSIGNMENT_RULE_CODE = :ruleCode
-- 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

Business rules

Sources

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