Skip to content

SQL-130: Retrieve CbpPrescribingProviderCode via GetPrescribingPrescriberCodes

This ORM statement performs a read operation on CbpPrescribingProviderCode via IUnitOfWork.GetRepository<T>(), executed from Services/SAIF.Services/Claims/Bills/BillServiceService.cs (L154).

Classification

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

Parameters

Parameter Direction Type Max length Description
(none) N/A N/A N/A No inline filter — full-entity read (Query().ToList()/projection) or filters appended later

Tables

Table Access Columns used
CBP_PRESCRIBING_PROVIDER_CODE SELECT CODE, UPDATE_NUM, CODE_DESCR, UPDATE_DATE, UPDATE_USER

LINQ statement

Source: Services/SAIF.Services/Claims/Bills/BillServiceService.cs:154

// Services/SAIF.Services/Claims/Bills/BillServiceService.cs:154
            return Mapper.Map<PrescribingProviderCode[]>(unitOfWork.GetRepository<CbpPrescribingProviderCode>().Query());

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
-- Services/SAIF.Services/Claims/Bills/BillServiceService.cs:154
SELECT
  CPPC.CODE,
  CPPC.UPDATE_NUM,
  CPPC.CODE_DESCR,
  CPPC.UPDATE_DATE,
  CPPC.UPDATE_USER
FROM CBP_PRESCRIBING_PROVIDER_CODE CPPC

Translation notes: - Mapper.Map<PrescribingProviderCode[]>(IQueryable) enumerates the unfiltered query.

Operations and processes

Sources

  • Services/SAIF.Services/Claims/Bills/BillServiceService.cs (L154)