😎清理代码

This commit is contained in:
zuohuaijun 2024-12-18 12:31:28 +08:00
parent deb9b3050f
commit 1b0aa27e53
2 changed files with 610 additions and 610 deletions

View File

@ -319,8 +319,9 @@ public class SysCodeGenService : IDynamicApiController, ITransient
/// <summary>
/// 获取库表信息
/// </summary>
/// <param name="containSysTable"></param>
/// <returns></returns>
private async Task<IEnumerable<EntityInfo>> GetEntityInfos(bool filtSysTable = false)
private async Task<IEnumerable<EntityInfo>> GetEntityInfos(bool containSysTable = false)
{
var types = new List<Type>();
if (_codeGenOptions.EntityAssemblyNames != null)
@ -355,8 +356,8 @@ public class SysCodeGenService : IDynamicApiController, ITransient
var entityInfos = new List<EntityInfo>();
foreach (var ct in cosType)
{
//// 若实体贴[SysTable]特性,则禁止显示系统自带的
if (filtSysTable && ct.IsDefined(typeof(SysTableAttribute), false))
// 若实体贴[SysTable]特性,则禁止显示系统自带的
if (containSysTable && ct.IsDefined(typeof(SysTableAttribute), false))
continue;
var des = ct.GetCustomAttributes(typeof(DescriptionAttribute), false);

File diff suppressed because it is too large Load Diff