mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Synchronization code
This commit is contained in:
parent
d46f1ec58c
commit
b49e940254
@ -145,7 +145,17 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
public override Action<SqlSugarException> ErrorEvent => it =>
|
||||||
|
{
|
||||||
|
if (base.ErrorEvent != null)
|
||||||
|
{
|
||||||
|
base.ErrorEvent(it);
|
||||||
|
}
|
||||||
|
if (it.Message != null && it.Message.StartsWith("42883:"))
|
||||||
|
{
|
||||||
|
Check.ExceptionEasy(it.Message, $"使用uuid_generate_v4()函数需要创建 CREATE EXTENSION IF NOT EXISTS kbcrypto;CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\" ");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
static readonly Dictionary<Type, KdbndpDbType> ArrayMapping = new Dictionary<Type, KdbndpDbType>()
|
static readonly Dictionary<Type, KdbndpDbType> ArrayMapping = new Dictionary<Type, KdbndpDbType>()
|
||||||
{
|
{
|
||||||
|
@ -228,6 +228,17 @@ namespace SqlSugar
|
|||||||
parameter.Value = Convert.ToInt64(parameter.Value);
|
parameter.Value = Convert.ToInt64(parameter.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public override Action<SqlSugarException> ErrorEvent => it =>
|
||||||
|
{
|
||||||
|
if (base.ErrorEvent != null)
|
||||||
|
{
|
||||||
|
base.ErrorEvent(it);
|
||||||
|
}
|
||||||
|
if (it.Message != null && it.Message.StartsWith("42883:"))
|
||||||
|
{
|
||||||
|
Check.ExceptionEasy(it.Message, $"使用uuid_generate_v4()函数需要创建 CREATE EXTENSION IF NOT EXISTS pgcrypto;CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\" ");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
static readonly Dictionary<Type, NpgsqlDbType> ArrayMapping = new Dictionary<Type, NpgsqlDbType>()
|
static readonly Dictionary<Type, NpgsqlDbType> ArrayMapping = new Dictionary<Type, NpgsqlDbType>()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user