---
title: "SQL-226: ServiceCodeMaintenanceQueryProvider.GetDescriptions"
summary: Read operation for `ServiceCodeMaintenanceQueryProvider.GetDescriptions`
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data
reference_type: package
---

# SQL-226: ServiceCodeMaintenanceQueryProvider.GetDescriptions

This statement is a read operation invoked through ORM (NHibernate LINQ). Executed by `ServiceCodeMaintenanceQueryProvider.GetDescriptions`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-226 |
| **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** | `GetDescriptions` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `code` | Input | string | N/A | Method argument of `ServiceCodeMaintenanceQueryProvider.GetDescriptions` bound into the ORM expression; NHibernate generates the bind variable at runtime |
| `type` | Input | string | N/A | Method argument of `ServiceCodeMaintenanceQueryProvider.GetDescriptions` bound into the ORM expression; NHibernate generates the bind variable at runtime |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CBP_SERVICE_DESCRIPTION](../database-tables.md#cbp_service_description) | SELECT | BILL_SERVICE_CODE, BILL_SERVICE_TYPE_CODE, SERVICE_DESCR_EFF_DATE, UPDATE_NUM, SERVICE_DESCR_EXP_DATE, SERVICE_DESCR_TEXT, UPDATE_USER, UPDATE_DATE |

## LINQ statement

Source: `Data/SAIF.Data/Queries/Claims/Bills/ServiceCodeMaintenanceQueryProvider.cs:27`.

```csharp
public IEnumerable<CbpServiceDescription> GetDescriptions(string code, string type)
{
    return Factory.GetRepository<CbpServiceDescription>().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.

```sql
-- Inferred from LINQ (NHibernate mapping translation); not concrete SQL
SELECT
  CSD.BILL_SERVICE_CODE,
  CSD.BILL_SERVICE_TYPE_CODE,
  CSD.SERVICE_DESCR_EFF_DATE,
  CSD.UPDATE_NUM,
  CSD.SERVICE_DESCR_EXP_DATE,
  CSD.SERVICE_DESCR_TEXT,
  CSD.UPDATE_USER,
  CSD.UPDATE_DATE
FROM CBP_SERVICE_DESCRIPTION CSD
WHERE CSD.BILL_SERVICE_CODE = :code
  AND CSD.BILL_SERVICE_TYPE_CODE = :type
```

## Operations and processes

- [Other query providers](../operations/other-query-providers.md)


## Sources
- `Data/SAIF.Data/Queries/Claims/Bills/ServiceCodeMaintenanceQueryProvider.cs:27`
