2 Commits 3047b5a9ea ... 9ce02c473a

Autor SHA1 Mensaje Fecha
  qinchaoyue 9ce02c473a Merge branch 'feature/snapshot' into test hace 7 horas
  qinchaoyue a4773a30b4 修复删除关系 hace 7 horas
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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();
     }