From 08acec50ef5d91d2a41570a851ac4d6fd9e2d9ae Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 21 Feb 2023 16:38:19 +0800 Subject: [PATCH] Update Subquery.EnableTableFilter() --- .../ExpressionsToSql/Subquery/Items/SubEnableTableFilter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubEnableTableFilter.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubEnableTableFilter.cs index 66fbb0559..30a2de4a4 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubEnableTableFilter.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubEnableTableFilter.cs @@ -56,7 +56,7 @@ namespace SqlSugar if (field != null) { Type ChildType = item.GetType().GetProperty("type", flag).GetValue(item, null) as Type; - if (ChildType == type|| ChildType.IsInterface) + if (ChildType == type|| (ChildType.IsInterface&&type.GetInterfaces().Contains(ChildType))) { var entityInfo = db.EntityMaintenance.GetEntityInfo(ChildType); var exp = field.GetValue(item, null) as Expression;