Explorar o código

Entity Forms are now deleted when their parent entity is deleted

frogsoftware hai 1 ano
pai
achega
ad18e3dd46
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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]