From e689a6d4057a41d2880a3032c4aea9aee7c3658f Mon Sep 17 00:00:00 2001 From: milimoe Date: Mon, 11 May 2026 19:53:41 +0800 Subject: [PATCH] =?UTF-8?q?SQLHelper=20=E7=8E=B0=E5=9C=A8=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E8=AE=B0=E5=BD=95=E6=9C=80=E5=90=8E=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E5=8F=91=E7=94=9F=E7=9A=84=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Api/Transmittal/SQLHelper.cs | 5 +++++ Interface/Base/ISQLHelper.cs | 1 + 2 files changed, 6 insertions(+) diff --git a/Api/Transmittal/SQLHelper.cs b/Api/Transmittal/SQLHelper.cs index 66b8066..9c93bdc 100644 --- a/Api/Transmittal/SQLHelper.cs +++ b/Api/Transmittal/SQLHelper.cs @@ -76,6 +76,11 @@ namespace Milimoe.FunGame.Core.Api.Transmittal /// public bool ClearParametersAfterExecute { get; set; } = true; + /// + /// 最后一次执行命令时发生的异常 + /// + public abstract Exception? LastException { get; } + /// /// 执行现有命令() /// diff --git a/Interface/Base/ISQLHelper.cs b/Interface/Base/ISQLHelper.cs index ceeb3cd..aa524a5 100644 --- a/Interface/Base/ISQLHelper.cs +++ b/Interface/Base/ISQLHelper.cs @@ -17,6 +17,7 @@ namespace Milimoe.FunGame.Core.Interface.Base public long LastInsertId { get; } public DataSet DataSet { get; } public bool Success { get; } + public Exception? LastException { get; } public int Execute(); public DataSet ExecuteDataSet();