mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Synchronization code
This commit is contained in:
parent
461e1f323e
commit
5d941c1dc3
@ -146,8 +146,12 @@ namespace SqlSugar
|
|||||||
|
|
||||||
return sql;
|
return sql;
|
||||||
}
|
}
|
||||||
public override Action<SqlSugarException> ErrorEvent => it => {
|
public override Action<SqlSugarException> ErrorEvent => it =>
|
||||||
|
{
|
||||||
|
if (base.ErrorEvent != null)
|
||||||
|
{
|
||||||
|
base.ErrorEvent(it);
|
||||||
|
}
|
||||||
if (it.Message != null && it.Message.Contains("无效的主机/绑定变量名"))
|
if (it.Message != null && it.Message.Contains("无效的主机/绑定变量名"))
|
||||||
{
|
{
|
||||||
Check.ExceptionEasy(it.Message, $"错误:{it.Message},出现这个错的原因: 1.可能是参数名为关键词(例如 @user )2. SQL错误。");
|
Check.ExceptionEasy(it.Message, $"错误:{it.Message},出现这个错的原因: 1.可能是参数名为关键词(例如 @user )2. SQL错误。");
|
||||||
|
Loading…
Reference in New Issue
Block a user