From 33b8cbd1b0419d59ef861ee401dacd1cb2bed410 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期五, 12 四月 2024 14:44:10 +0800
Subject: [PATCH] 盟祺科技改到api

---
 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