Update exp to sql

This commit is contained in:
sunkaixuan 2023-02-21 16:17:14 +08:00
parent ab4bf97cbd
commit 55ddd3d199

View File

@ -56,7 +56,7 @@ namespace SqlSugar
if (field != null) if (field != null)
{ {
Type ChildType = item.GetType().GetProperty("type", flag).GetValue(item, null) as Type; Type ChildType = item.GetType().GetProperty("type", flag).GetValue(item, null) as Type;
if (ChildType == type) if (ChildType == type|| ChildType.IsInterface)
{ {
var entityInfo = db.EntityMaintenance.GetEntityInfo(ChildType); var entityInfo = db.EntityMaintenance.GetEntityInfo(ChildType);
var exp = field.GetValue(item, null) as Expression; var exp = field.GetValue(item, null) as Expression;