Group image soft delete¶
Group image soft delete is implemented by GroupImageRepository.Delete and is documented as OP-SDN-12 in the Stage 1 analysis.
| Field | Value |
|---|---|
| Operation ID | OP-SDN-12 |
| Trigger | See steps below |
| Primary components | GroupImageRepository.Delete |
Steps¶
- Load the
ImageGroup(Image_Group) and itsImage. - If
ImageDeleteCodeis blank or" ", set it to "Y" and stamp the update user and date. - Rule: SDN-BR-040.
- Write via the unit of work.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start(["Group image soft delete"]) --> S1["`GroupImageRepository.Delete`"]
S1 --> S2{"Rules satisfied?"}
S2 -->|Yes| EndOk([Result returned])
S2 -->|No| EndErr([Exception / empty result])
Related documentation¶
Sources¶
Data/SAIF.Data.NHibernate/Repositories/Groups/GroupImageRepository.cs