Parcourir la source

Merge branch 'feature/snapshot' into test

qinchaoyue il y a 14 heures
Parent
commit
9ce02c473a
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/Hotline.Application/Snapshot/SnapshotUserApplication.cs

+ 5 - 1
src/Hotline.Application/Snapshot/SnapshotUserApplication.cs

@@ -51,7 +51,11 @@ public class SnapshotUserApplication : ISnapshotUserApplication, IScopeDependenc
         }
 
         await _safetyTypeRepository.AddNav(safeType)
-            .Include(m => m.Citizens)
+            .Include(m => m.Citizens, new InsertNavOptions()
+            {
+                ManyToManyNoDeleteMap = true
+
+            })
             .ExecuteCommandAsync();
     }