From 3257607b9c77867a836ffec1b09729acc18675d1 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 17 Apr 2023 16:01:31 +0800 Subject: [PATCH] Update Kdbndp --- .../SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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.", "");