Skip to content

SQL-386: Delete MedicareBeneficiaryQueryBatch via ProcessDeleteMedicareBeneficiarysForBatch

This statement deletes the MedicareBeneficiaryQueryBatch entity identified by its SUBMISSION_DATE key from MEDICARE_BENEFICIARY_QUERY_BAT, executed via IUnitOfWork.GetRepository<T>().Delete(...) from Services/SAIF.Services/Claims/Medicare/MedicareService.cs (L135) in MedicareService.ProcessDeleteMedicareBeneficiarysForBatch. The SQL below is inferred from this repository call and the NHibernate MedicareBeneficiaryQueryBatchMap mapping — it is not literal SQL present in source.

Classification

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

Parameters

Parameter Direction Type Max length Description
:SubmissionDate Input DateTime N/A Identifier of the MedicareBeneficiaryQueryBatch being deleted (SUBMISSION_DATE)

Tables

Table Access Columns used
MEDICARE_BENEFICIARY_QUERY_BAT DELETE SUBMISSION_DATE

LINQ statement

Source: Services/SAIF.Services/Claims/Medicare/MedicareService.cs:135

// Services/SAIF.Services/Claims/Medicare/MedicareService.cs:135
_unitOfWork.GetRepository<MedicareBeneficiaryQueryBatch>().Delete(medicareMinimumBatch);

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 MEDICARE_BENEFICIARY_QUERY_BAT
WHERE SUBMISSION_DATE = :SubmissionDate

Translation notes:

  • Identifier is SubmissionDate (Id(x => x.SubmissionDate).Column("SUBMISSION_DATE")).

Operations and processes

Sources

  • Services/SAIF.Services/Claims/Medicare/MedicareService.cs (L135)