mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Synchronization code
This commit is contained in:
@@ -214,6 +214,16 @@ namespace SqlSugar
|
|||||||
|
|
||||||
return sql;
|
return sql;
|
||||||
}
|
}
|
||||||
|
public override Action<SqlSugarException> ErrorEvent => it =>
|
||||||
|
{
|
||||||
|
if (base.ErrorEvent != null)
|
||||||
|
{
|
||||||
|
base.ErrorEvent(it);
|
||||||
|
}
|
||||||
|
if (it.Message != null && it.Message.Contains("Detail redacted as it may contain sensitive data."))
|
||||||
|
{
|
||||||
|
Check.ExceptionEasy(it.Message, $"错误:可能是字段太小超出,详细错误:{it.Message} ");
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -215,5 +215,17 @@ namespace SqlSugar
|
|||||||
return sql;
|
return sql;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override Action<SqlSugarException> ErrorEvent => it =>
|
||||||
|
{
|
||||||
|
if (base.ErrorEvent != null)
|
||||||
|
{
|
||||||
|
base.ErrorEvent(it);
|
||||||
|
}
|
||||||
|
if (it.Message != null && it.Message.Contains("Detail redacted as it may contain sensitive data."))
|
||||||
|
{
|
||||||
|
Check.ExceptionEasy(it.Message, $"错误:可能是字段太小超出,详细错误:{it.Message} ");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user