---
title: "SQL-359: Update RctPolicyToTransmit via UpdateRctPolicyToTransmit"
summary: Update operation against RctPolicyToTransmit via NHibernate ORM.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-09-24
library: SAIF.Services
reference_type: package
---

# SQL-359: Update RctPolicyToTransmit via UpdateRctPolicyToTransmit

This ORM statement updates a `RCT_POLICIES_TO_TRANSMIT` row's policy period effective date and market type for a policy to be transmitted, executed from `Services/SAIF.Services/Rct/RctPolicyToTransmitService.cs (L66)`. The SQL below is inferred from the `IRepository<RctPolicyToTransmit>.Update` call and the `RctPolicyToTransmit` NHibernate mapping, not literal SQL text in source.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-359 |
| **Operation type** | Update |
| **Execution method** | ORM (IRepository.Update) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | N/A (ORM-generated) |
| **Business object** | `RctPolicyToTransmit` |
| **Criteria property** | N/A — ORM |
| **Lifecycle method** | `UpdateRctPolicyToTransmit` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyNumber` | Input | long | N/A | Identifier of the RctPolicyToTransmit being updated (`POLICY_NUM`) |
| `:PolicyPeriodEffectiveDate` | Input | DateTime | N/A | New value of `POLICY_PERIOD_EFF_DATE` |
| `:MarketTypeCode` | Input | string | N/A | New value of `MARKET_TYPE_CODE` |
| `:OriginalPolicyPeriodEffectiveDate` | Input | DateTime? | N/A | New value of `ORIGINAL_PP_EFF_DATE` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [RCT_POLICIES_TO_TRANSMIT](../database-tables.md#rct_policies_to_transmit) | UPDATE | `POLICY_NUM`, `POLICY_PERIOD_EFF_DATE`, `MARKET_TYPE_CODE`, `ORIGINAL_PP_EFF_DATE` |

## LINQ statement

Source: `Services/SAIF.Services/Rct/RctPolicyToTransmitService.cs:66`

```csharp
// Services/SAIF.Services/Rct/RctPolicyToTransmitService.cs:64
var dataPolicyToTransmit = Mapper.Map<DataRct.RctPolicyToTransmit>(policyToTransmit);

_unitOfWork.GetRepository<DataRct.RctPolicyToTransmit>().Update(dataPolicyToTransmit);
```

## 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
UPDATE RCT_POLICIES_TO_TRANSMIT
SET
  POLICY_PERIOD_EFF_DATE = :PolicyPeriodEffectiveDate,
  MARKET_TYPE_CODE = :MarketTypeCode,
  ORIGINAL_PP_EFF_DATE = :OriginalPolicyPeriodEffectiveDate
WHERE POLICY_NUM = :PolicyNumber
```

Translation notes:

- No `Version(...)` mapping, so the UPDATE has no optimistic-concurrency predicate.
- `Update(entity)` emits an explicit UPDATE of every updatable mapped column (no `DynamicUpdate()` on this map).
- The entity is a detached instance built by `Mapper.Map` (line 64); `Update` re-attaches it by identifier (`POLICY_NUM`).

## Operations and processes
- RctPolicyToTransmitService.UpdateRctPolicyToTransmit — see [Operations and processes](../operations-processes.md)

## Sources
- `Services/SAIF.Services/Rct/RctPolicyToTransmitService.cs (L66)`
