mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 12:18:00 +08:00
Synchronization code
This commit is contained in:
parent
5d941c1dc3
commit
9000e70073
@ -148,15 +148,14 @@ namespace SqlSugar
|
||||
}
|
||||
public override Action<SqlSugarException> ErrorEvent => it =>
|
||||
{
|
||||
|
||||
if (it.Message != null && it.Message.Contains("无效的主机/绑定变量名"))
|
||||
{
|
||||
Check.ExceptionEasy(it.Message, $"错误:{it.Message},出现这个错的原因: 1.可能是参数名为关键词(例如 @user )2. SQL错误。");
|
||||
}
|
||||
if (base.ErrorEvent != null)
|
||||
{
|
||||
base.ErrorEvent(it);
|
||||
}
|
||||
if (it.Message != null && it.Message.Contains("无效的主机/绑定变量名"))
|
||||
{
|
||||
Check.ExceptionEasy(it.Message, $"错误:{it.Message},出现这个错的原因: 1.可能是参数名为关键词(例如 @user )2. SQL错误。");
|
||||
}
|
||||
};
|
||||
public override void SetCommandToAdapter(IDataAdapter dataAdapter, DbCommand command)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user