SQL-363: Delete BillOverride via Delete¶
This ORM statement deletes an EDI_BILL_OVERRIDE row identified by its bill identifier, executed from Services/SAIF.Services/Edi/BillOverrideService.cs (L160). The SQL below is inferred from the IRepository<BillOverride>.Delete call and the BillOverride NHibernate mapping, not literal SQL text in source.
Classification¶
| Field | Value |
|---|---|
| SQL ID | SQL-363 |
| Operation type | Delete |
| Execution method | ORM (IRepository.Delete) |
| Database | Oracle |
| Schema | [unqualified]** |
| Command type | N/A (ORM-generated) |
| Business object | BillOverride |
| Criteria property | N/A — ORM |
| Lifecycle method | Delete |
Parameters¶
| Parameter | Direction | Type | Max length | Description |
|---|---|---|---|---|
:Id |
Input | long? | N/A | Identifier of the BillOverride being deleted (BILL_ID) |
Tables¶
| Table | Access | Columns used |
|---|---|---|
| EDI_BILL_OVERRIDE | DELETE | BILL_ID |
LINQ statement¶
Source: Services/SAIF.Services/Edi/BillOverrideService.cs:160. The entity is loaded on the preceding line, Services/SAIF.Services/Edi/BillOverrideService.cs:159.
// Services/SAIF.Services/Edi/BillOverrideService.cs:159
var billOverride = GetOverrideById(id);
unitOfWork.GetRepository<DataModel.BillOverride>().Delete(billOverride);
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 EDI_BILL_OVERRIDE
WHERE BILL_ID = :Id
Translation notes:
- Entity loaded by
GetOverrideById(id)(line 159) - a separate read.
Operations and processes¶
- BillOverrideService.Delete — see Operations and processes
Sources¶
Services/SAIF.Services/Edi/BillOverrideService.cs (L160)