瀏覽代碼

😎恢复 【开发工具-库表管理】中【生成实体】生成路径

zuohuaijun 1 年之前
父節點
當前提交
79c74c7c00
共有 1 個文件被更改,包括 10 次插入 和 10 次删除
  1. 10 10
      Admin.NET/Admin.NET.Core/Service/DataBase/SysDatabaseService.cs

+ 10 - 10
Admin.NET/Admin.NET.Core/Service/DataBase/SysDatabaseService.cs

@@ -563,16 +563,16 @@ public class SysDatabaseService : IDynamicApiController, ITransient
     private static string GetEntityTargetPath(CreateEntityInput input)
     {
         var backendPath = Path.Combine(new DirectoryInfo(App.WebHostEnvironment.ContentRootPath).Parent.FullName, input.Position, "Entity");
-        if (!Directory.Exists(backendPath))
-        {
-            var pluginsPath = App.GetConfig<string[]>("AppSettings:ExternalAssemblies");
-            foreach (var pluginPath in pluginsPath)
-            {
-                backendPath = Path.Combine(new DirectoryInfo(App.WebHostEnvironment.ContentRootPath).Parent.FullName, pluginPath, input.Position, "Entity");
-                if (Directory.Exists(backendPath))
-                    break;
-            }
-        }
+        //if (!Directory.Exists(backendPath))
+        //{
+        //    var pluginsPath = App.GetConfig<string[]>("AppSettings:ExternalAssemblies");
+        //    foreach (var pluginPath in pluginsPath)
+        //    {
+        //        backendPath = Path.Combine(new DirectoryInfo(App.WebHostEnvironment.ContentRootPath).Parent.FullName, pluginPath, input.Position, "Entity");
+        //        if (Directory.Exists(backendPath))
+        //            break;
+        //    }
+        //}
         if (!Directory.Exists(backendPath))
             Directory.CreateDirectory(backendPath);
         return Path.Combine(backendPath, input.EntityName + ".cs");