diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs index 935e9f342..78b322ddf 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs @@ -6,6 +6,14 @@ namespace SqlSugar { public class KdbndpDbBind : DbBindProvider { + public override string GetDbTypeName(string csharpTypeName) + { + if (csharpTypeName == UtilConstants.ByteArrayType.Name) + return "bytea"; + + var result = base.GetDbTypeName(csharpTypeName); + return result; + } public override string GetPropertyTypeName(string dbTypeName) { dbTypeName = dbTypeName.Replace("pg_catalog.", "");