Skip to content

SQL-391: Delete SecurityOverride via DeleteOverride

This statement deletes the SecurityOverride entity identified by its CL_OVERRIDE_SECURITY_SEQ_NUM key from CL_SECURITY_OVERRIDE, executed via IUnitOfWork.GetRepository<T>().Delete(...) from Services/SAIF.Services/Claims/SecurityOverride/SecurityOverrideService.cs (L165) in SecurityOverrideService.DeleteOverride. The SQL below is inferred from this repository call and the NHibernate SecurityOverrideMap mapping — it is not literal SQL present in source.

Classification

Field Value
SQL ID SQL-391
Operation type Delete
Execution method ORM (IRepository.Delete)
Database Oracle
Schema [unqualified]**
Command type N/A (ORM-generated)
Business object SecurityOverride
Criteria property N/A — ORM
Lifecycle method DeleteOverride

Parameters

Parameter Direction Type Max length Description
:Id Input long N/A Identifier of the SecurityOverride being deleted (CL_OVERRIDE_SECURITY_SEQ_NUM)

Tables

Table Access Columns used
CL_SECURITY_OVERRIDE DELETE CL_OVERRIDE_SECURITY_SEQ_NUM

LINQ statement

Source: Services/SAIF.Services/Claims/SecurityOverride/SecurityOverrideService.cs:165

// Services/SAIF.Services/Claims/SecurityOverride/SecurityOverrideService.cs:165
unitOfWork.GetRepository<Data.Model.Claims.SecurityOverrides.SecurityOverride>()
    .Delete(securityOverride);

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 CL_SECURITY_OVERRIDE
WHERE CL_OVERRIDE_SECURITY_SEQ_NUM = :Id

Translation notes:

  • Entity loaded at lines 160-161 (separate read).

Operations and processes

Sources

  • Services/SAIF.Services/Claims/SecurityOverride/SecurityOverrideService.cs (L165)