Просмотр исходного кода

bugfix: UtilMethods.ToUnderLine也需要转为小写比较,否则有下划线的大写表名不匹配。

Signed-off-by: 清子 <261617183@qq.com>
清子 3 лет назад
Родитель
Сommit
19366e3eef
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Admin.NET/Admin.NET.Core/Service/CodeGen/SysCodeGenService.cs

+ 1 - 1
Admin.NET/Admin.NET.Core/Service/CodeGen/SysCodeGenService.cs

@@ -139,7 +139,7 @@ public class SysCodeGenService : IDynamicApiController, ITransient
         var tableOutputList = new List<TableOutput>();
         foreach (var item in entityInfos)
         {
-            var table = dbTableInfos.FirstOrDefault(x => x.Name.ToLower() == (config.EnableUnderLine ? UtilMethods.ToUnderLine(item.DbTableName) : item.DbTableName.ToLower()));
+            var table = dbTableInfos.FirstOrDefault(x => x.Name.ToLower() == (config.EnableUnderLine ? UtilMethods.ToUnderLine(item.DbTableName) : item.DbTableName).ToLower());
             if (table == null) continue;
             tableOutputList.Add(new TableOutput
             {