😎清理代码
This commit is contained in:
parent
deb9b3050f
commit
1b0aa27e53
@ -319,8 +319,9 @@ public class SysCodeGenService : IDynamicApiController, ITransient
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取库表信息
|
/// 获取库表信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <param name="containSysTable"></param>
|
||||||
/// <returns></returns>
|
/// <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>();
|
var types = new List<Type>();
|
||||||
if (_codeGenOptions.EntityAssemblyNames != null)
|
if (_codeGenOptions.EntityAssemblyNames != null)
|
||||||
@ -355,8 +356,8 @@ public class SysCodeGenService : IDynamicApiController, ITransient
|
|||||||
var entityInfos = new List<EntityInfo>();
|
var entityInfos = new List<EntityInfo>();
|
||||||
foreach (var ct in cosType)
|
foreach (var ct in cosType)
|
||||||
{
|
{
|
||||||
//// 若实体贴[SysTable]特性,则禁止显示系统自带的
|
// 若实体贴[SysTable]特性,则禁止显示系统自带的
|
||||||
if (filtSysTable && ct.IsDefined(typeof(SysTableAttribute), false))
|
if (containSysTable && ct.IsDefined(typeof(SysTableAttribute), false))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var des = ct.GetCustomAttributes(typeof(DescriptionAttribute), false);
|
var des = ct.GetCustomAttributes(typeof(DescriptionAttribute), false);
|
||||||
|
|||||||
@ -4,9 +4,8 @@
|
|||||||
//
|
//
|
||||||
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
|
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
|
||||||
|
|
||||||
using NewLife.Reflection;
|
|
||||||
using Newtonsoft.Json.Converters;
|
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
using Npgsql;
|
using Npgsql;
|
||||||
|
|
||||||
namespace Admin.NET.Core.Service;
|
namespace Admin.NET.Core.Service;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user