From 0d783a041e71c91e24c338ee43a1b5f62d7954f2 Mon Sep 17 00:00:00 2001 From: czw <selecti@yeah.net> Date: 星期三, 23 七月 2025 15:25:04 +0800 Subject: [PATCH] 1 --- 2025年6月12日/AuxAllWCS/Build/Project/代码/自定义类.cs | 25 +------------------------ 1 files changed, 1 insertions(+), 24 deletions(-) diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\261\273.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\261\273.cs" index 9f66096..52e3c02 100644 --- "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\261\273.cs" +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\261\273.cs" @@ -50,29 +50,6 @@ } #endregion [鑷畾涔夌被][20250323144531864][Settings] } - public static class ExtendClass - { - public static void Disnull(this TaskRepository repository) - { - repository.dbcontext.Dispose(); - repository = null; - } - public static void Disnull(this LocRepository repository) - { - repository.dbcontext.Dispose(); - repository = null; - } - public static void Disnull(this TaskActRepository repository) - { - repository.dbcontext.Dispose(); - repository = null; - } - public static void Disnull(this SYSRepository repository) - { - repository.dbcontext.Dispose(); - repository = null; - } - } public class LogHelper { #region [鑷畾涔夌被][20250323145442478][LogHelper] @@ -676,7 +653,7 @@ N_CREATEMETHOD = 0 }; TaskActRepository taskserice = new TaskActRepository(); - + taskserice.Insert(action); taskserice.Disnull(); } -- Gitblit v1.9.1