Ver código fonte

Entity Forms are now deleted when their parent entity is deleted

frogsoftware 1 ano atrás
pai
commit
ad18e3dd46
1 arquivos alterados com 2 adições e 0 exclusões
  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]