瀏覽代碼

Entity Forms are now deleted when their parent entity is deleted

frogsoftware 1 年之前
父節點
當前提交
ad18e3dd46
共有 1 個文件被更改,包括 2 次插入0 次删除
  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; }
         public string Description { get; set; }
 
 
         [NullEditor]
         [NullEditor]
+        [EntityRelationship(DeleteAction.Cascade)]
         public TParentLink Parent { get; set; }
         public TParentLink Parent { get; set; }
 
 
         [NullEditor]
         [NullEditor]
@@ -42,6 +43,7 @@ namespace InABox.Core
         public QAFormLink QAForm { get; set; }
         public QAFormLink QAForm { get; set; }
 
 
         [EditorSequence(1)]
         [EditorSequence(1)]
+        [EntityRelationship(DeleteAction.Cascade)]
         public DigitalFormLink Form { get; set; }
         public DigitalFormLink Form { get; set; }
 
 
         [NullEditor]
         [NullEditor]