Procházet zdrojové kódy

移除特定类型的过滤条件

删除了在获取实现 `ITable` 接口的类型时,排除名称为 "Order"、"OrderCopy"、"Workflow"、"WorkflowStep" 和 "WorkflowTrace" 的类型的过滤条件。
xf před 1 měsícem
rodič
revize
0314f48970

+ 0 - 1
src/Hotline.Repository.SqlSugar/Extensions/SqlSugarStartupExtensions.cs

@@ -147,7 +147,6 @@ namespace Hotline.Repository.SqlSugar.Extensions
 
                 var types = typeof(User).Assembly.GetTypes()
                     .Where(d => d.GetInterfaces().Any(x => x == typeof(ITable) && !d.IsAbstract))
-                    .Where(d => d.Name != "Order" && d.Name != "OrderCopy" && d.Name != "Workflow" && d.Name != "WorkflowStep" && d.Name != "WorkflowTrace")
                     .Distinct()
                     .ToArray();