SQLHelper 现在可以记录最后一次发生的异常

This commit is contained in:
milimoe 2026-05-11 19:53:41 +08:00
parent 4b5c46a8fb
commit e689a6d405
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0
2 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,11 @@ namespace Milimoe.FunGame.Core.Api.Transmittal
/// </summary>
public bool ClearParametersAfterExecute { get; set; } = true;
/// <summary>
/// 最后一次执行命令时发生的异常
/// </summary>
public abstract Exception? LastException { get; }
/// <summary>
/// 执行现有命令(<see cref="Script"/>
/// </summary>

View File

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