| | |
| | | } |
| | | #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] |
| | |
| | | N_CREATEMETHOD = 0 |
| | | }; |
| | | TaskActRepository taskserice = new TaskActRepository(); |
| | | |
| | | taskserice.Insert(action); |
| | | taskserice.Disnull(); |
| | | } |
| | | |