SQL-367: Delete ClaimNote via DeleteNote¶
This statement deletes the ClaimNote entity identified by its identifier (CLAIM_ACTIVITY_SEQ_NUM) via IUnitOfWork.GetRepository<T>().Delete(entity), invoked from ClaimNotesService.DeleteNote (Services/SAIF.Services/Claims/Notes/ClaimNotesService.cs:237). The SQL below is inferred from this repository call and the ClaimNote NHibernate mapping — it is not literal SQL present in source.
Classification¶
| Field | Value |
|---|---|
| SQL ID | SQL-367 |
| Operation type | Delete |
| Execution method | ORM (IRepository.Delete) |
| Database | Oracle |
| Schema | [unqualified]** |
| Command type | N/A (ORM-generated) |
| Business object | ClaimNote |
| Criteria property | N/A — ORM |
| Lifecycle method | DeleteNote |
Parameters¶
| Parameter | Direction | Type | Max length | Description |
|---|---|---|---|---|
:Id |
Input | long | N/A | Identifier of the ClaimNote being deleted (CLAIM_ACTIVITY_SEQ_NUM) |
Tables¶
| Table | Access | Columns used |
|---|---|---|
| CLAIM_ACTIVITY | DELETE | CLAIM_ACTIVITY_SEQ_NUM |
LINQ statement¶
Source: Services/SAIF.Services/Claims/Notes/ClaimNotesService.cs:237
// Services/SAIF.Services/Claims/Notes/ClaimNotesService.cs:237
UnitOfWork.GetRepository<ClaimNote>().Delete(note);
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
DELETE FROM CLAIM_ACTIVITY
WHERE CLAIM_ACTIVITY_SEQ_NUM = :Id
Translation notes:
- Entity loaded at line 236 (separate read).
Operations and processes¶
- ClaimNotesService.DeleteNote — see Operations and processes
Sources¶
Services/SAIF.Services/Claims/Notes/ClaimNotesService.cs (L237)