From 0aa5cf69618ed71f4fe488cd214817bf9f3c1779 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 24 Aug 2022 01:07:33 +0800 Subject: [PATCH] Update .net core project --- .../PostgreSQL/SqlBuilder/PostgreSQLInsertBuilder.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/SqlBuilder/PostgreSQLInsertBuilder.cs b/Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/SqlBuilder/PostgreSQLInsertBuilder.cs index bdd43340d..287ef2370 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/SqlBuilder/PostgreSQLInsertBuilder.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/SqlBuilder/PostgreSQLInsertBuilder.cs @@ -56,6 +56,10 @@ namespace SqlSugar StringBuilder batchInsetrSql = new StringBuilder(); int pageSize = 200; int pageIndex = 1; + if (IsNoPage&&IsReturnPkList) + { + pageSize = groupList.Count; + } int totalRecord = groupList.Count; int pageCount = (totalRecord + pageSize - 1) / pageSize; while (pageCount >= pageIndex)