代码生成新增加导航查询

This commit is contained in:
不做码农
2022-05-08 14:08:18 +08:00
parent aba8768c44
commit 6ab0f86ca2
10 changed files with 67 additions and 36 deletions

View File

@@ -57,7 +57,11 @@ namespace ZR.Service.System
{
var info = GenTableRepository.GetId(tableId);
SetTableFromOptions(info);
if (info != null && !info.SubTableName.IsEmpty())
{
info.SubTable = GenTableRepository.Queryable().Where(f => f.SubTableName == info.TableName).First();
SetTableFromOptions(info?.SubTable);
}
return info;
}