Skip to content

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

  1. Load the ImageGroup (Image_Group) and its Image.
  2. If ImageDeleteCode is blank or " ", set it to "Y" and stamp the update user and date.
  3. Rule: SDN-BR-040.
  4. 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])

Sources

  • Data/SAIF.Data.NHibernate/Repositories/Groups/GroupImageRepository.cs