This commit is contained in:
2248356998 qq.com
2025-07-23 19:11:39 +08:00
parent 01aa6ca066
commit a4aa000cf0
2 changed files with 4 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ public class SugarAopService : ISugarAopService
if (ex.Parameters == null) return;
Console.ForegroundColor = ConsoleColor.Red;
DbContext.WriteLog($"{config.ConfigId}库操作异常");
DbContext.WriteErrorLogWithSql(UtilMethods.GetNativeSql(ex.Sql, (SugarParameter[])ex.Parameters));
DbContext.WriteErrorLogWithSql(UtilMethods.GetNativeSql(ex.Sql, (IReadOnlyList<SugarParameter>)ex.Parameters));
NewLife.Log.XTrace.WriteException(ex);
Console.ForegroundColor = ConsoleColor.White;
};

View File

@@ -1,9 +1,9 @@
<Project>
<PropertyGroup>
<PluginVersion>10.9.65</PluginVersion>
<ProPluginVersion>10.9.65</ProPluginVersion>
<DefaultVersion>10.9.65</DefaultVersion>
<PluginVersion>10.9.66</PluginVersion>
<ProPluginVersion>10.9.66</ProPluginVersion>
<DefaultVersion>10.9.66</DefaultVersion>
<AuthenticationVersion>2.9.24</AuthenticationVersion>
<SourceGeneratorVersion>10.9.24</SourceGeneratorVersion>
<NET8Version>8.0.18</NET8Version>