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();