Forráskód Böngészése

Entity Forms are now deleted when their parent entity is deleted

frogsoftware 1 éve
szülő
commit
ad18e3dd46
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      InABox.Core/DigitalForms/Forms/EntityForm.cs

+ 2 - 0
InABox.Core/DigitalForms/Forms/EntityForm.cs

@@ -35,6 +35,7 @@ namespace InABox.Core
         public string Description { get; set; }
 
         [NullEditor]
+        [EntityRelationship(DeleteAction.Cascade)]
         public TParentLink Parent { get; set; }
 
         [NullEditor]
@@ -42,6 +43,7 @@ namespace InABox.Core
         public QAFormLink QAForm { get; set; }
 
         [EditorSequence(1)]
+        [EntityRelationship(DeleteAction.Cascade)]
         public DigitalFormLink Form { get; set; }
 
         [NullEditor]