From 013264da731bf3ff287761346c58562937c9d5cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Sun, 5 Dec 2021 22:09:09 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E8=A1=A8=E6=97=A0=E4=B8=BB=E9=94=AE=E6=97=A0=E8=87=AA=E5=A2=9E?= =?UTF-8?q?=E6=97=B6controller=20=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.CodeGenerator/CodeGeneratorTool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZR.CodeGenerator/CodeGeneratorTool.cs b/ZR.CodeGenerator/CodeGeneratorTool.cs index eadb973..9a0c7d6 100644 --- a/ZR.CodeGenerator/CodeGeneratorTool.cs +++ b/ZR.CodeGenerator/CodeGeneratorTool.cs @@ -46,7 +46,7 @@ namespace ZR.CodeGenerator /// public static void GenerateSingle(GenerateDto dto) { - string PKName = "id"; + string PKName = "Id"; string PKType = "int"; ReplaceDto replaceDto = new(); replaceDto.ModelTypeName = dto.GenTable.ClassName;//表名对应C# 实体类名