From b3f97549b2145b2b40a55ed22c219235c667901c 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, 9 Jan 2022 20:48:40 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=AF=BC?=
=?UTF-8?q?=E5=85=A5=E4=B8=9A=E5=8A=A1=E5=90=8D=E4=B8=8B=E5=88=92=E7=BA=BF?=
=?UTF-8?q?=E8=BD=AC=E9=A9=BC=E5=B3=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ZR.CodeGenerator/CodeGeneratorTool.cs | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/ZR.CodeGenerator/CodeGeneratorTool.cs b/ZR.CodeGenerator/CodeGeneratorTool.cs
index a7fbf695..f6cb94d4 100644
--- a/ZR.CodeGenerator/CodeGeneratorTool.cs
+++ b/ZR.CodeGenerator/CodeGeneratorTool.cs
@@ -268,16 +268,6 @@ namespace ZR.CodeGenerator
return tableName.Substring(0, 1).ToUpper() + tableName[1..].Replace("_", "");
}
- ///
- /// 获取业务名
- ///
- /// tableName 表名
- /// 业务名
- public static string GetBusinessName(string tableName)
- {
- return tableName.Substring(0, 1).ToUpper() + tableName[1..].Replace("_", "");
- }
-
///
/// 首字母转小写,输出前端
///
@@ -356,7 +346,7 @@ namespace ZR.CodeGenerator
BaseNameSpace = "ZR.",//导入默认命名空间前缀
ModuleName = "business",//导入默认模块名
ClassName = GetClassName(tableName),
- BusinessName = GetBusinessName(tableName),
+ BusinessName = FirstUpperCase(tableName.UnderScoreToCamelCase()),
FunctionAuthor = ConfigUtils.Instance.GetConfig(GenConstants.Gen_author),
TableName = tableName,
TableComment = desc,