From 1ae7b5a517aaa0f3a45f0b31b0c5173c35558318 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期四, 30 五月 2024 16:43:34 +0800 Subject: [PATCH] 按模块项目拆分Business --- Tiger.Business/DbBase.cs | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Tiger.Business/DbBase.cs b/Tiger.Business/DbBase.cs index 2a6939e..9b07916 100644 --- a/Tiger.Business/DbBase.cs +++ b/Tiger.Business/DbBase.cs @@ -254,6 +254,7 @@ { var dbres = isAsync ? await Db.Deleteable<T>().In(primaryKeys).ExecuteCommandAsync() : Db.Deleteable<T>().In(primaryKeys).ExecuteCommand(); action.Message = $"Delete {typeof(T).Name} entity by primary keys from database success"; + action.IsSuccessed = true; } catch (Exception ex) { @@ -276,6 +277,7 @@ { var dbres = isAsync ? await Db.Deleteable<T>().Where(entity).ExecuteCommandAsync() : Db.Deleteable<T>().Where(entity).ExecuteCommand(); action.Message = $"Delete {typeof(T).Name} entity from database success"; + action.IsSuccessed = true; } catch (Exception ex) { -- Gitblit v1.9.3