Browse Source

Entity Forms are now deleted when their parent entity is deleted

frogsoftware 1 năm trước cách đây
mục cha
commit
ad18e3dd46
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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]