SQL-225: ServiceCodeMaintenanceQueryProvider.GetCptServices¶
This statement is a read operation invoked through ORM (NHibernate LINQ). Executed by ServiceCodeMaintenanceQueryProvider.GetCptServices.
Classification¶
| Field | Value |
|---|---|
| SQL ID | SQL-225 |
| Operation type | Read |
| Execution method | ORM (NHibernate LINQ) |
| Database | Oracle* |
| Schema | [unqualified]** |
| Command type | N/A (ORM-generated) |
| Business object | ServiceCodeMaintenanceQueryProvider |
| Criteria property | N/A — ORM |
| Lifecycle method | GetCptServices |
Parameters¶
| Parameter | Direction | Type | Max length | Description |
|---|---|---|---|---|
code |
Input | string | N/A | Method argument of ServiceCodeMaintenanceQueryProvider.GetCptServices bound into the ORM expression; NHibernate generates the bind variable at runtime |
type |
Input | string | N/A | Method argument of ServiceCodeMaintenanceQueryProvider.GetCptServices bound into the ORM expression; NHibernate generates the bind variable at runtime |
Tables¶
| Table | Access | Columns used |
|---|---|---|
| CBP_CPT_SERVICE | SELECT | CBP_SERVICE_CODE, SERVICE_TYPE_CODE, UPDATE_NUM, EFF_DATE, EXP_DATE, UPDATE_USER, UPDATE_DATE |
LINQ statement¶
Source: Data/SAIF.Data/Queries/Claims/Bills/ServiceCodeMaintenanceQueryProvider.cs:22.
public IEnumerable<CbpCptService> GetCptServices(string code, string type)
{
return Factory.GetRepository<CbpCptService>().Query().Where(x => x.Service.Code == code && x.Service.ServiceType.Code == type).ToList();
}
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
CCS.CBP_SERVICE_CODE,
CCS.SERVICE_TYPE_CODE,
CCS.UPDATE_NUM,
CCS.EFF_DATE,
CCS.EXP_DATE,
CCS.UPDATE_USER,
CCS.UPDATE_DATE
FROM CBP_CPT_SERVICE CCS
WHERE CCS.CBP_SERVICE_CODE = :code
AND CCS.SERVICE_TYPE_CODE = :type
Translation notes:
- CBP_SERVICE_CODE/SERVICE_TYPE_CODE are both the entity's own composite key (CbpCptServiceMap.cs:13-15) and the Service reference columns (line 24). Each is selected once.
Operations and processes¶
Sources¶
Data/SAIF.Data/Queries/Claims/Bills/ServiceCodeMaintenanceQueryProvider.cs:22