mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update Subquery.EnableTableFilter()
This commit is contained in:
parent
cbdd786363
commit
08acec50ef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user