fix:Oracle数据库代码生成获取不了数据库问题

This commit is contained in:
不做码农
2023-02-23 11:06:46 +08:00
parent ee4b7c17b2
commit a0f4afbe25
4 changed files with 13 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ namespace ZR.Admin.WebApi.Controllers
public IActionResult GetListDataBase()
{
var dbList = _CodeGeneraterService.GetAllDataBases();
var defaultDb = dbList.Count > 0 ? dbList[0] : null;
var defaultDb = dbList?[0];
return SUCCESS(new { dbList, defaultDb });
}

View File

@@ -48,7 +48,8 @@
"autoPre": true, //自动去除表前缀
"author": "admin",
"tablePrefix": "sys_", //"表前缀(生成类名不会包含表前缀,多个用逗号分隔)",
"vuePath": "" //前端代码存储路径egD:\Work\ZRAdmin-Vue3
"vuePath": "", //前端代码存储路径egD:\Work\ZRAdmin-Vue3
"oracle_db": ""
},
//邮箱配置信息
"MailOptions": {